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
ddea9151
Unverified
Commit
ddea9151
authored
Oct 21, 2018
by
Igor Pečovnik
Committed by
GitHub
Oct 21, 2018
Browse files
Securer file handling for cronjob
https://github.com/armbian/config/issues/11
parent
73d8e30e
Changes
1
Show whitespace changes
Inline
Side-by-side
debian-software
View file @
ddea9151
...
@@ -779,6 +779,9 @@ cat > /etc/cron.daily/seed-armbian-torrent <<"EOF"
...
@@ -779,6 +779,9 @@ cat > /etc/cron.daily/seed-armbian-torrent <<"EOF"
#
armbian
torrents
auto
update
#
armbian
torrents
auto
update
#
#
#
download
latest
torrent
pack
#
download
latest
torrent
pack
TEMP_DIR=
$(mktemp
-d
||
exit
1)
chmod
700
${
TEMP_DIR
}
trap
"
rm
-rf
\"${
TEMP_DIR
}\"
;
exit
0"
0
1
2
3
15
wget
-qO-
-O
${
TEMP_DIR
}/
armbian-torrents.zip
https:
//
dl.armbian.com
/
torrent
/
all-torrents.zip
wget
-qO-
-O
${
TEMP_DIR
}/
armbian-torrents.zip
https:
//
dl.armbian.com
/
torrent
/
all-torrents.zip
#
test
zip
for
corruption
#
test
zip
for
corruption
unzip
-t
${
TEMP_DIR
}/
armbian-torrents.zip
>
/dev/null 2>
&
1
unzip
-t
${
TEMP_DIR
}/
armbian-torrents.zip
>
/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