1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/question2answer_ynh.git synced 2024-09-03 20:16:07 +02:00

Merge pull request #6 from YunoHost-Apps/testing

Update with stricter permissions
This commit is contained in:
Nils Van Zuijlen 2021-04-09 10:01:01 +02:00 committed by GitHub
commit e10bb47279
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 13 additions and 4 deletions

View file

@ -15,11 +15,11 @@
setup_private=1 setup_private=1
setup_public=1 setup_public=1
upgrade=1 upgrade=1
upgrade=1 from_commit=928272bb6c3f68173d1f1fe8b11e48e3464c730e upgrade=1 from_commit=38c46ddf46c1d42fe4184924cfcfc890fa3014d4
backup_restore=1 backup_restore=1
multi_instance=1 multi_instance=1
port_already_use=0 port_already_use=0
change_url=1 change_url=1
;;; Upgrade options ;;; Upgrade options
; commit=928272bb6c3f68173d1f1fe8b11e48e3464c730e ; commit=38c46ddf46c1d42fe4184924cfcfc890fa3014d4
manifest_arg=domain=DOMAIN&path=PATH&language=fr&is_public=1&q2a_name=ATestQ2ASite&admin=USER&password=password& manifest_arg=domain=DOMAIN&path=PATH&language=fr&is_public=1&q2a_name=ATestQ2ASite&admin=USER&password=password&

View file

@ -6,7 +6,7 @@
"en": "Platform for Question&Answer sites.", "en": "Platform for Question&Answer sites.",
"fr": "Plateforme de Question/Réponses." "fr": "Plateforme de Question/Réponses."
}, },
"version": "1.8.5~ynh2", "version": "1.8.5~ynh3",
"url": "https://www.question2answer.org/", "url": "https://www.question2answer.org/",
"license": "GPL-2.0-or-later", "license": "GPL-2.0-or-later",
"maintainer": { "maintainer": {

View file

@ -247,8 +247,11 @@ ynh_store_file_checksum --file="$final_path/.htaccess"
# Set permissions to app files # Set permissions to app files
chown -R root: $final_path chown -R root: $final_path
chmod o-rwx $final_path
chown $app:www-data $final_path
# Remove database initialization file # Remove database initialization file
#rm $final_path/qa-include/qa-install.php rm $final_path/qa-include/qa-install.php
#================================================= #=================================================
# SETUP SSOWAT # SETUP SSOWAT

View file

@ -75,6 +75,9 @@ ynh_system_user_create --username=$app
# Restore permissions on app files # Restore permissions on app files
chown -R root: $final_path chown -R root: $final_path
chmod o-rwx $final_path
chown $app:www-data $final_path
#================================================= #=================================================
# RESTORE THE PHP-FPM CONFIGURATION # RESTORE THE PHP-FPM CONFIGURATION
#================================================= #=================================================

View file

@ -153,6 +153,9 @@ fi
# Set permissions on app files # Set permissions on app files
chown -R root: $final_path chown -R root: $final_path
chmod o-rwx $final_path
chown $app:www-data $final_path
#================================================= #=================================================
# RELOAD NGINX # RELOAD NGINX
#================================================= #=================================================