1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/synapse_ynh.git synced 2024-09-03 20:26:38 +02:00

Fix permissions

This commit is contained in:
Josué Tille 2024-09-02 21:29:31 +02:00
parent a827b20d58
commit 548a4c8807
No known key found for this signature in database
GPG key ID: 5F259226AD51F2F5

View file

@ -139,14 +139,18 @@ ensure_vars_set() {
}
set_permissions() {
chown "$app":"$app" -R "$code_dir"
chmod u+rwX,g+rX,o= -R "$code_dir"
chown -R "$app:$app" "$install_dir"
chmod -R u+rwX,g+rX-w,o= "$install_dir"
chmod 770 "$code_dir"/Coturn_config_rotate.sh
chown -R "$app":"$app" "$code_dir"
chmod -R u+rwX,g+rX-w,o= "$code_dir"
chmod 750 "$code_dir"/Coturn_config_rotate.sh
chmod 700 "$code_dir"/update_synapse_for_appservice.sh
chmod 700 "$code_dir"/set_admin_user.sh
if [ "${1:-}" == data ]; then
chmod 750 "$data_dir"
find "$data_dir" \( \! -perm -o= \
-o \! -user "$app" \
-o \! -group "$app" \) \