Skip to content

Commit

Permalink
more update script fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMiniSandwich committed Dec 2, 2024
1 parent 633f6ea commit 4294451
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/bin/update
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ sudo cp -pf /etc/systemd/system/foxservers.* /tmp/foxservers.bak/services/
sudo mkdir /tmp/foxservers/
sudo mkdir /tmp/foxservers/downloads/
sudo curl -L https://api.github.com/repos/FoxServers/core/tarball/${1} -o /tmp/foxservers/downloads/core.${1}.tar.gz &&
sudo tar -zvxf core.${1}.tar.gz --directory /tmp/foxservers/downloads --strip-components=1 &&
sudo chmod +x foxservers_install.sh &&
sudo tar -zvxf /tmp/foxservers/downloads/core.${1}.tar.gz --directory /tmp/foxservers/downloads --strip-components=1 &&
sudo chmod +x /tmp/foxservers/downloads/foxservers_install.sh &&
sudo rm -R /opt/foxservers/ &&
sudo rm -R /etc/systemd/system/foxservers.* &&
./foxservers_install.sh &&
/tmp/foxservers/downloads/foxservers_install.sh &&
sudo rm core.${1}.tar.gz &&
sudo rm -rf /tmp/foxservers/downloads/{*,.*}

0 comments on commit 4294451

Please sign in to comment.