1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/syncthing_ynh.git synced 2024-09-03 20:26:23 +02:00

reorder INSTALL DEPENDENCIES

This commit is contained in:
yalh76 2019-04-13 16:48:58 +02:00
parent 2c4708756b
commit 42deb5098c

View file

@ -84,6 +84,21 @@ fi
ynh_exec_warn_less yunohost firewall allow --no-upnp TCP $SYNCPORT
ynh_app_setting_set $app syncport $SYNCPORT
#=================================================
# INSTALL DEPENDENCIES
#=================================================
ynh_print_info "Installing dependencies..."
# Download and install syncthing binary
sudo apt-get install curl
## Add the release PGP keys:
curl -s https://syncthing.net/release-key.txt | sudo apt-key add -
## Add the choosed channel to your APT sources:
echo "deb http://apt.syncthing.net/ syncthing $channel" | sudo tee /etc/apt/sources.list.d/syncthing.list
## Update and install syncthing:
sudo apt-get update -qq
sudo apt-get install syncthing -y --force-yes
#=================================================
# CREATE DEDICATED USER
#=================================================
@ -102,21 +117,6 @@ sudo chown -R $SYNCUSER:$SYNCUSER $SYNCHOME/
sudo find $SYNCHOME/ -type f | while read LINE; do sudo chmod 640 "$LINE" ; done
sudo find $SYNCHOME/ -type d | while read LINE; do sudo chmod 750 "$LINE" ; done
#=================================================
# INSTALL DEPENDENCIES
#=================================================
ynh_print_info "Installing dependencies..."
# Download and install syncthing binary
sudo apt-get install curl
## Add the release PGP keys:
curl -s https://syncthing.net/release-key.txt | sudo apt-key add -
## Add the choosed channel to your APT sources:
echo "deb http://apt.syncthing.net/ syncthing $channel" | sudo tee /etc/apt/sources.list.d/syncthing.list
## Update and install syncthing:
sudo apt-get update -qq
sudo apt-get install syncthing -y --force-yes
#=================================================
# SETUP SYSTEMD
#=================================================