mirror of
https://github.com/mrworf/plexupdate.git
synced 2025-08-19 21:03:19 -07:00
Fix permissions on cronwrapper before installing it into cron.daily
This commit is contained in:
parent
8744339dfc
commit
2f4b45f465
1 changed files with 2 additions and 0 deletions
|
@ -260,8 +260,10 @@ configure_cron() {
|
|||
echo
|
||||
echo -n "Installing daily cron job... "
|
||||
if [ $EUID -ne 0 ]; then
|
||||
sudo chown root:root "${FULL_PATH}/extras/cronwrapper"
|
||||
sudo ln -sf "${FULL_PATH}/extras/cronwrapper" "$CRONWRAPPER"
|
||||
else
|
||||
chown root:root "${FULL_PATH}/extras/cronwrapper"
|
||||
ln -sf "${FULL_PATH}/extras/cronwrapper" "$CRONWRAPPER"
|
||||
fi
|
||||
echo "done"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue