Commit d82c10c8 authored by Igor Pecovnik's avatar Igor Pecovnik
Browse files

Fixing wrong path and supresing output

parent 9ef138e5
...@@ -733,8 +733,8 @@ fancy_wget "$wgeturl" "-O ${TEMP_DIR}/syncthing.tgz" ...@@ -733,8 +733,8 @@ fancy_wget "$wgeturl" "-O ${TEMP_DIR}/syncthing.tgz"
wgeturl=$(curl -s "https://api.github.com/repos/syncthing/syncthing-inotify/releases" | grep $filename | grep 'browser_download_url' | head -1 | cut -d \" -f 4) wgeturl=$(curl -s "https://api.github.com/repos/syncthing/syncthing-inotify/releases" | grep $filename | grep 'browser_download_url' | head -1 | cut -d \" -f 4)
fancy_wget "$wgeturl" "-O ${TEMP_DIR}/syncthing-inotify.tgz" fancy_wget "$wgeturl" "-O ${TEMP_DIR}/syncthing-inotify.tgz"
tar xf ${TEMP_DIR}/syncthing.tgz -C ${TEMP_DIR} tar xf ${TEMP_DIR}/syncthing.tgz -C ${TEMP_DIR}
tar xf ${TEMP_DIR}/syncthing-inotify.tgz -C /usr/bin/syncthing tar xf ${TEMP_DIR}/syncthing-inotify.tgz -C /usr/bin
cp -R ${TEMP_DIR}/syncthing-*/syncthing /usr/bin/syncthing/ cp -R ${TEMP_DIR}/syncthing-*/syncthing /usr/bin
cp ${TEMP_DIR}/syncthing-*/etc/linux-systemd/system/syncthing* /etc/systemd/system/ cp ${TEMP_DIR}/syncthing-*/etc/linux-systemd/system/syncthing* /etc/systemd/system/
cp /etc/systemd/system/syncthing@.service /etc/systemd/system/syncthing-inotify@.service cp /etc/systemd/system/syncthing@.service /etc/systemd/system/syncthing-inotify@.service
...@@ -749,10 +749,10 @@ if !(grep -qs "fs.inotify.max_user_watches=204800" "/etc/sysctl.conf");then ...@@ -749,10 +749,10 @@ if !(grep -qs "fs.inotify.max_user_watches=204800" "/etc/sysctl.conf");then
echo -e "fs.inotify.max_user_watches=204800" | tee -a /etc/sysctl.conf echo -e "fs.inotify.max_user_watches=204800" | tee -a /etc/sysctl.conf
fi fi
add_choose_user add_choose_user
systemctl enable syncthing@${CHOSEN_USER}.service systemctl enable syncthing@${CHOSEN_USER}.service >/dev/null 2>&1
systemctl start syncthing@${CHOSEN_USER}.service systemctl start syncthing@${CHOSEN_USER}.service >/dev/null 2>&1
systemctl enable syncthing-inotify@${CHOSEN_USER}.service systemctl enable syncthing-inotify@${CHOSEN_USER}.service >/dev/null 2>&1
systemctl start syncthing-inotify@${CHOSEN_USER}.service systemctl start syncthing-inotify@${CHOSEN_USER}.service >/dev/null 2>&1
} }
......
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