rclone mount permission change

This commit is contained in:
Brian Zalewski 2023-11-27 23:04:02 +00:00
parent 4199cc6ebb
commit 2b60755274

View file

@ -42,7 +42,7 @@ fi
### Ensure folders exist ### Ensure folders exist
for FOLDER in "$CACHE_FOLDER" "$CONFIG_FOLDER" "$LOG_FOLDER" "$MOUNT_PATH"; do for FOLDER in "$CACHE_FOLDER" "$CONFIG_FOLDER" "$LOG_FOLDER" "$MOUNT_PATH"; do
if [ ! -d "$FOLDER" ]; then if [ ! -d "$FOLDER" ]; then
sudo mkdir -p "$FOLDER" || echo "ERROR: Need permissions for $FOLDER" mkdir -p "$FOLDER" || sudo mkdir -p "$FOLDER"
sudo chmod 755 "$FOLDER" sudo chmod 755 "$FOLDER"
if command -v own > /dev/null; then if command -v own > /dev/null; then
sudo own "$FOLDER" sudo own "$FOLDER"