1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ttrss_ynh.git synced 2024-10-01 13:34:46 +02:00

Fix files permissions

This commit is contained in:
tituspijean 2021-05-13 15:50:17 +02:00
parent 7365fd34dc
commit 8312dc9d16
3 changed files with 6 additions and 6 deletions

View file

@ -112,7 +112,7 @@ ynh_add_systemd_config
#================================================= #=================================================
# Set permissions to app files # Set permissions to app files
chown -R root: $final_path chown -R root:$app $final_path
chown -R $app $final_path/{cache,feed-icons,lock} chown -R $app $final_path/{cache,feed-icons,lock}
#================================================= #=================================================

View file

@ -67,7 +67,7 @@ ynh_system_user_create --username=$app
#================================================= #=================================================
# Set permissions to app files # Set permissions to app files
chown -R root: $final_path chown -R root:$app $final_path
chown -R $app $final_path/{cache,feed-icons,lock} chown -R $app $final_path/{cache,feed-icons,lock}
#================================================= #=================================================

View file

@ -126,7 +126,7 @@ then
ynh_secure_remove --file="$final_path" ynh_secure_remove --file="$final_path"
mv "$tmpdir" "$final_path" mv "$tmpdir" "$final_path"
ynh_secure_remove --file="$tmpdir" ynh_secure_remove --file="$tmpdir"
domain_path=https://$domain$path_url domain_path=https://$domain$path_url
ynh_add_config --template="../conf/config.php" --destination="$final_path/config.php" ynh_add_config --template="../conf/config.php" --destination="$final_path/config.php"
@ -135,7 +135,8 @@ then
#================================================= #=================================================
ynh_script_progression --message="Upgrading ttrss database..." --weight=2 ynh_script_progression --message="Upgrading ttrss database..." --weight=2
chown -R $app: $final_path chown -R root:$app $final_path
chown -R $app $final_path/{cache,feed-icons,lock}
ynh_exec_as $app php"${phpversion}" ${final_path}/update.php --update-schema ynh_exec_as $app php"${phpversion}" ${final_path}/update.php --update-schema
fi fi
@ -154,8 +155,7 @@ ynh_add_systemd_config
#================================================= #=================================================
# Set permissions to app files # Set permissions to app files
chown -R root: $final_path chown -R root:$app $final_path
chmod 0755 $final_path
chown -R $app $final_path/{cache,feed-icons,lock} chown -R $app $final_path/{cache,feed-icons,lock}
#================================================= #=================================================