syncthing user directory permissions
This commit is contained in:
parent
0c3d0f3c5b
commit
337252f25e
|
@ -275,6 +275,14 @@ function user_devices_changed {
|
||||||
fi
|
fi
|
||||||
done < /home/$USERNAME/$SYNCTHING_USER_IDS_FILE
|
done < /home/$USERNAME/$SYNCTHING_USER_IDS_FILE
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Permissions on user Sync directories
|
||||||
|
if [ -d /home/$USERNAME/Sync ]; then
|
||||||
|
chown $USERNAME:$USERNAME /home/$USERNAME /home/$USERNAME/Sync
|
||||||
|
fi
|
||||||
|
if [ -d /home/$USERNAME/SyncShared ]; then
|
||||||
|
chown $USERNAME:$USERNAME /home/$USERNAME /home/$USERNAME/SyncShared
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue