Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Config
Commits
d82c10c8
Commit
d82c10c8
authored
May 09, 2018
by
Igor Pecovnik
Browse files
Fixing wrong path and supresing output
parent
9ef138e5
Changes
1
Show whitespace changes
Inline
Side-by-side
debian-software
View file @
d82c10c8
...
...
@@ -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)
fancy_wget
"$
wgeturl
"
"
-O
${
TEMP_DIR
}/
syncthing-inotify.tgz
"
tar
xf
${
TEMP_DIR
}/
syncthing.tgz
-C
${
TEMP_DIR
}
tar
xf
${
TEMP_DIR
}/
syncthing-inotify.tgz
-C
/
usr
/
bin
/
syncthing
cp
-R
${
TEMP_DIR
}/
syncthing-*
/
syncthing
/
usr
/
bin
/
syncthing
/
tar
xf
${
TEMP_DIR
}/
syncthing-inotify.tgz
-C
/
usr
/
bin
cp
-R
${
TEMP_DIR
}/
syncthing-*
/
syncthing
/
usr
/
bin
cp
${
TEMP_DIR
}/
syncthing-*
/
etc
/
linux-systemd
/
system
/
syncthing*
/
etc
/
systemd
/
system
/
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
echo
-e
"
fs.inotify.max_user_watches=
204800"
|
tee
-a
/
etc
/
sysctl.conf
fi
add_choose_user
systemctl
enable
syncthing
@${
CHOSEN_USER
}.
service
systemctl
start
syncthing
@${
CHOSEN_USER
}.
service
systemctl
enable
syncthing-inotify
@${
CHOSEN_USER
}.
service
systemctl
start
syncthing-inotify
@${
CHOSEN_USER
}.
service
systemctl
enable
syncthing
@${
CHOSEN_USER
}.
service
>
/dev/null 2>
&
1
systemctl start syncthing@${CHOSEN_USER}.service
>/dev/null 2>
&
1
systemctl enable syncthing-inotify@${CHOSEN_USER}.service
>/dev/null 2>
&
1
systemctl start syncthing-inotify@${CHOSEN_USER}.service
>/dev/null 2>
&
1
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment