From 1cc89cf654f6c96fc28bf6b71ed21569e8f69ce4 Mon Sep 17 00:00:00 2001 From: fred Date: Wed, 5 Apr 2023 14:48:08 +0200 Subject: [PATCH] better restart with systemd & g1billet --- 20h12.process.sh | 11 ++++++++--- www/PasseportTerre/index.html | 6 +++--- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/20h12.process.sh b/20h12.process.sh index 3ad1b07c..195691da 100755 --- a/20h12.process.sh +++ b/20h12.process.sh @@ -20,11 +20,14 @@ rm -Rf ~/.zen/tmp/* espeak "CODE git pull" > /dev/null 2>&1 ## PROCESS TW BACKOFFICE TREATMENT +[[ -s ~/.zen/G1BILLET/G1BILLETS.sh ]] && cd ~/.zen/G1BILLET/ && git pull + cd ~/.zen/Astroport.ONE/ git pull + ## SOON /ipns/ Address !!! -espeak "20 HOURS 12 MINUTES. START NU ONE UPDATE" > /dev/null 2>&1 +espeak "20 HOURS 12 MINUTES. ASTROBOT RUNNING." > /dev/null 2>&1 ## Updating yt-dlp $MY_PATH/youtube-dl.sh sudo youtube-dl -U @@ -58,7 +61,7 @@ echo "20H12 (♥‿‿♥) Execution time was $dur" seconds. ## MAIL LOG : support@qo-op.com $MY_PATH/tools/mailjet.sh "support@g1sms.fr" "/tmp/20h12.log" -espeak "20 12 Storm & Thunder duration was $dur seconds" > /dev/null 2>&1 +espeak "duration was $dur seconds" > /dev/null 2>&1 espeak "Restarting Astroport Station API" > /dev/null 2>&1 ## CLOSING API PORT @@ -71,7 +74,9 @@ if [[ ! -f /etc/systemd/system/astroport.service ]]; then PID=$! echo $PID > ~/.zen/.pid else - echo "systemd will restart..." + sudo systemctl restart astroport + [[ -s ~/.zen/G1BILLET/G1BILLETS.sh ]] && sudo systemctl restart g1billet + echo "systemd restart" fi exit 0 diff --git a/www/PasseportTerre/index.html b/www/PasseportTerre/index.html index bda52f60..971363b0 100644 --- a/www/PasseportTerre/index.html +++ b/www/PasseportTerre/index.html @@ -100,7 +100,7 @@ background: black; position: absolute; top: 2%; - left: 2%; + right: 3%; width: 55%; } @@ -115,8 +115,8 @@ #ainfo { background: grey; position: absolute; - top: 2%; - right: 2%; + top: 1%; + right: 1%; }