Skip to content

Commit

Permalink
Upgrade script errors, file had special characters, Parsing was not p…
Browse files Browse the repository at this point in the history
…roducing expected results, spawned by: RecursiveProgrammer#2
  • Loading branch information
RecursiveProgrammer committed Mar 8, 2021
1 parent a010ca8 commit 21dbdf7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Server/wwwroot/Downloads/Ubuntu-Upgrade.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
#!/bin/bash

AppRoot=$(cat /etc/systemd/system/remotely.service | grep -i "execstart" | cut -d' ' -f 2)
AppRoot=$(cat /etc/systemd/system/remotely.service | grep -i "execstart" | cut -d' ' -f 2 | sed -e 's/\/[^\/]*$/\//')

echo "Remotely server upgrade started."

echo "Target path: $AppRoot"

read -p "If this is not correct, press Ctrl + C now to abort!"


echo "Ensuring dependencies are installed."

# Install other prerequisites.
Expand All @@ -28,4 +27,4 @@ chown -R "$USER":www-data $AppRoot
# Restart service.
systemctl restart remotely.service

echo "Update complete."
echo "Update complete."

0 comments on commit 21dbdf7

Please sign in to comment.