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
75c4a3eb
Commit
75c4a3eb
authored
Apr 19, 2017
by
Igor Pecovnik
Browse files
Bugfix
parent
79be0a28
Changes
1
Hide whitespace changes
Inline
Side-by-side
softy
View file @
75c4a3eb
...
...
@@ -356,7 +356,8 @@ cat >> /etc/cron.daily/seed-armbian-torrent <<"EOF"
rm
-f
/
tmp
/
tmp.zip
;
wget
-qO-
-O
/
tmp
/
tmp.zip
https:
//
dl.armbian.com
/
torrent
/
all-torrents.zip
#
test
zip
for
corruption
unzip
-t
/
tmp
/
tmp.zip
>
/dev/null 2>
&
1 || echo "Error in zip"
&&
exit
unzip
-t
/
tmp
/
tmp.zip
>
/dev/null 2>
&
1
[[ $? -ne 0 ]]
&&
echo "Error in zip"
&&
exit
# extract zip
unzip -o /tmp/tmp.zip -d /tmp/torrent-tmp >/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