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

Merge pull request #103 from YunoHost-Apps/fix

Fix files permissions
This commit is contained in:
yalh76 2021-05-17 21:29:36 +02:00 committed by GitHub
commit e63a88c345
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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}
#================================================= #=================================================