Commit 07f2a4a2 authored by Hypermist's avatar Hypermist

Script Updates

parent 1977d550
Pipeline #345 passed with stage
in 17 minutes and 34 seconds
......@@ -110,8 +110,7 @@ handle_arguments()
}
install_dependencies() {
sudo apt-get install ufw -y
sudo apt-get install unzip -y
sudo apt-get install ufw unzip -y
}
create_swap() {
......@@ -184,12 +183,12 @@ configure_firewall() {
}
add_cron_job() {
(crontab -l 2>/dev/null; echo "@reboot sudo /usr/local/bin/crownd") | crontab -
(crontab -l 2>/dev/null; echo "@reboot /usr/local/bin/crownd") | crontab -
}
main() {
# Stop crownd (in case it's running)
sudo crown-cli stop
/usr/local/bin/crown-cli stop
# Install Packages
install_dependencies
# Download the latest release
......@@ -210,7 +209,7 @@ main() {
add_cron_job
fi
# Start Crownd to begin sync
sudo crownd
/usr/local/bin/crownd
}
handle_arguments "[email protected]"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment