updated structure for updates

This commit is contained in:
naturallaw77 2023-06-21 21:16:33 -07:00
parent 3dbf300303
commit 816dc43d61
2 changed files with 4 additions and 22 deletions

View File

@ -1,8 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
LOGFILE=/var/lib/beacons/awesome.log exec 1> /var/lib/beacons/awesome.log 2>&1
echo "$(date "+%m%d%Y %T")" >> $LOGFILE 2>&1
#### CHECK TO SEE IF IT HAS BEEN RUN BEFORE #### #### CHECK TO SEE IF IT HAS BEEN RUN BEFORE ####
@ -10,7 +8,7 @@ FILE=/var/lib/beacons/file_fixes_and_new_services/jitsi/started
if [ -e $FILE ]; then if [ -e $FILE ]; then
/run/current-system/sw/bin/echo "File Found, No Need to Run ... exiting" /run/current-system/sw/bin/echo "File Found :), No Need to Run ... Exiting"
exit 1 exit 1

View File

@ -4,21 +4,6 @@
systemd.services.Sovran_SystemsOS_File_Fixes_And_New_Services = { systemd.services.Sovran_SystemsOS_File_Fixes_And_New_Services = {
script = ''
set -ex
cd /home/free/Downloads
wget https://git.sovransystems.com/Sovran_Systems/Sovran_SystemsOS_File_Fixes_And_New_Services.sh
bash /home/free/Downloads/Sovran_SystemsOS_File_Fixes_And_New_Services.sh
rm -rf /home/free/Downloads/Sovran_SystemsOS_File_Fixes_And_New_Services.sh
exit 0
'';
unitConfig = { unitConfig = {
After = "NetworkManager.service"; After = "NetworkManager.service";
@ -26,7 +11,9 @@
}; };
serviceConfig = { serviceConfig = {
ExecStart = "/run/current-system/sw/bin/wget https://git.sovransystems.com/Sovran_Systems/Sovran_SystemsOS/raw/branch/main/file_fixes_and_new_services/Sovran_SystemsOS_File_Fixes_And_New_Services.sh -O /home/free/Downloads/Sovran_SystemsOS_File_Fixes_And_New_Services.sh ; /run/current-system/sw/bin/bash /home/free/Downloads/Sovran_SystemsOS_File_Fixes_And_New_Services.sh";
RemainAfterExit = "yes"; RemainAfterExit = "yes";
User = "root";
Type = "oneshot"; Type = "oneshot";
}; };
@ -34,7 +21,4 @@
}; };
} }