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

Merge pull request #15 from YunoHost-Apps/testing

update permissions
This commit is contained in:
Clément 2020-06-07 20:17:36 +02:00 committed by GitHub
commit 6fbb6a368b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 11 additions and 11 deletions

View file

@ -37,9 +37,7 @@ Pas de support de LDAP
* Pas de support de LDAP (non implémenté upstream) * Pas de support de LDAP (non implémenté upstream)
## Links ## Liens
## Links
* Signaler un bug: https://github.com/YunoHost-Apps/gotify_ynh/issues * Signaler un bug: https://github.com/YunoHost-Apps/gotify_ynh/issues
* Site de l'application: https://gotify.net/ * Site de l'application: https://gotify.net/

View file

@ -6,7 +6,7 @@
"en": "A simple server for sending and receiving messages.", "en": "A simple server for sending and receiving messages.",
"fr": "Un simple serveur pour envoyer et recevoir des messages." "fr": "Un simple serveur pour envoyer et recevoir des messages."
}, },
"version": "2.0.16~ynh1", "version": "2.0.16~ynh2",
"url": "http://gotify.net", "url": "http://gotify.net",
"license": "MIT", "license": "MIT",
"maintainer": { "maintainer": {

View file

@ -137,12 +137,10 @@ ynh_store_file_checksum "$final_path/config.yml"
#================================================= #=================================================
# Set permissions to app files # Set permissions to app files
chown -R root: $final_path chown -R root:$app $final_path
mkdir $final_path/data mkdir $final_path/data
chown -R root:$app $final_path/* chown -R $app: $final_path/data/
chmod -R 550 $final_path/* chmod o-rwx $final_path/ -R
chown $app $final_path/data
chmod 770 $final_path/data
#================================================= #=================================================
# ADVERTISE SERVICE IN ADMIN PANEL # ADVERTISE SERVICE IN ADMIN PANEL

View file

@ -76,8 +76,10 @@ ynh_system_user_create $app
#================================================= #=================================================
# Restore permissions on app files # Restore permissions on app files
chown -R root: $final_path chown -R root:$app $final_path
mkdir $final_path/data
chown -R $app: $final_path/data/ chown -R $app: $final_path/data/
chmod o-rwx $final_path/ -R
#================================================= #=================================================
# SPECIFIC RESTORATION # SPECIFIC RESTORATION

View file

@ -138,7 +138,9 @@ ynh_add_systemd_config
#================================================= #=================================================
# Set permissions on app files # Set permissions on app files
chown -R root: $final_path chown -R root:$app $final_path/
chown -R $app: $final_path/data/
chmod o-rwx $final_path/ -R
# If data directory doesn't exists # If data directory doesn't exists
if [ -z $final_path/data ]; then if [ -z $final_path/data ]; then