mirror of
https://github.com/mrworf/plexupdate.git
synced 2025-08-20 05:13: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
|
||||||
echo -n "Installing daily cron job... "
|
echo -n "Installing daily cron job... "
|
||||||
if [ $EUID -ne 0 ]; then
|
if [ $EUID -ne 0 ]; then
|
||||||
|
sudo chown root:root "${FULL_PATH}/extras/cronwrapper"
|
||||||
sudo ln -sf "${FULL_PATH}/extras/cronwrapper" "$CRONWRAPPER"
|
sudo ln -sf "${FULL_PATH}/extras/cronwrapper" "$CRONWRAPPER"
|
||||||
else
|
else
|
||||||
|
chown root:root "${FULL_PATH}/extras/cronwrapper"
|
||||||
ln -sf "${FULL_PATH}/extras/cronwrapper" "$CRONWRAPPER"
|
ln -sf "${FULL_PATH}/extras/cronwrapper" "$CRONWRAPPER"
|
||||||
fi
|
fi
|
||||||
echo "done"
|
echo "done"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue