Fix 403 error
This commit is contained in:
parent
4c979bdce5
commit
f674715a4c
@ -26,7 +26,10 @@ source_url='${SOURCE_URL:-rsync://mirror.fsf.org/hyperbola/gnu-plus-linux-libre}
|
|||||||
# Otherwise use the HTTP(S) URL from your chosen mirror.
|
# Otherwise use the HTTP(S) URL from your chosen mirror.
|
||||||
lastupdate_url=''
|
lastupdate_url=''
|
||||||
|
|
||||||
[ ! -d "\${target}" ] && mkdir -p "\${target}"
|
[ ! -d "\${target}" ] && install -d -m755 "\${target}"
|
||||||
|
|
||||||
|
# Set permission owner
|
||||||
|
chown -R http:http "\${target}"
|
||||||
|
|
||||||
exec 9>"\${lock}"
|
exec 9>"\${lock}"
|
||||||
/usr/bin/flock -n 9 || exit
|
/usr/bin/flock -n 9 || exit
|
||||||
@ -65,6 +68,9 @@ rsync_cmd \
|
|||||||
"\${source_url}" \
|
"\${source_url}" \
|
||||||
"\${target}"
|
"\${target}"
|
||||||
|
|
||||||
|
# Re-check permission
|
||||||
|
chown -R http:http "\${target}"
|
||||||
|
|
||||||
# Cleanup
|
# Cleanup
|
||||||
/bin/rm -f "\$lock"
|
/bin/rm -f "\$lock"
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
Reference in New Issue
Block a user