Skip to content

Commit

Permalink
Fixup install and some of uninstall
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffCurless committed Feb 16, 2022
1 parent 1643b83 commit cac5e6a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
11 changes: 8 additions & 3 deletions argon-uninstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ if [ -f $argononefanscript ]; then
sudo systemctl disable argononed.service

# Turn off the fan
/usr/bin/python3 $argononefanscript FANOFF
sudo /usr/bin/python3 $argononefanscript FANOFF

# Remove files
sudo rm /lib/systemd/system/argononed.service
Expand All @@ -52,8 +52,8 @@ then
sudo systemctl disable argoneond.service

# No need for sudo
/usr/bin/python3 $argoneonrtcscript CLEAN
/usr/bin/python3 $argoneonrtcscript SHUTDOWN
sudo /usr/bin/python3 $argoneonrtcscript CLEAN
sudo /usr/bin/python3 $argoneonrtcscript SHUTDOWN

# Remove files
sudo rm /lib/systemd/system/argoneond.service
Expand All @@ -68,6 +68,11 @@ then
sudo rm /usr/bin/argonone-ir
fi

if [ -f "/usr/bin/argon-status" ]
then
sudo rm /usr/bin/argon-status
fi

sudo rm /lib/systemd/system-shutdown/argon-shutdown.sh

sudo rm -R -f $INSTALLATIONFOLDER
Expand Down
11 changes: 8 additions & 3 deletions argoneon.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ INSTALLATIONFOLDER=/etc/argon

uninstallscript=$INSTALLATIONFOLDER/argon-uninstall.sh
shutdownscript=/lib/systemd/system-shutdown/argon-shutdown.sh
statusscript=$INSTALLATIONFOLDER/argon-status.sh
statusscript=$INSTALLATIONFOLDER/argon-status.py
statuscmd=argon-status
configscript=$INSTALLATIONFOLDER/argon-config

setupmode="Setup"
Expand Down Expand Up @@ -198,9 +199,13 @@ sudo curl -L $ARGONDOWNLOADSERVER/argon-shutdown.sh -o $shutdownscript --silent
sudo chmod 755 $shutdownscript

# Argon Status script
sudo curl -L $ARGONDOWNLOADSERVER/argon-status.sh -o $statusscript --silent
sudo curl -L $ARGONDOWNLOADSERVER/argon-status.py -o $statusscript --silent
sudo chmod 755 $statusscript
sudo ln -s $statusscript /usr/bin/argon-status
if [ -f /usr/bin/$statuscmd ]
then
sudo rm /usr/bin/$statuscmd
fi
sudo ln -s $statusscript /usr/bin/$statuscmd

# Argon Config Script
if [ -f $configscript ]; then
Expand Down

0 comments on commit cac5e6a

Please sign in to comment.