1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/cryptpad_ynh.git synced 2024-09-03 18:26:14 +02:00

cleaning up

This commit is contained in:
ericgaspar 2021-05-25 22:22:10 +02:00
parent b8265cb2e6
commit 4c864199ac
No known key found for this signature in database
GPG key ID: 574F281483054D44
8 changed files with 28 additions and 13 deletions

3
doc/DISCLAIMER.md Normal file
View file

@ -0,0 +1,3 @@
## Configuration
* How to configure this app: From the admin panel and the plain file `/var/www/cryptpad/config/config.js.`

3
doc/DISCLAIMER_fr.md Normal file
View file

@ -0,0 +1,3 @@
## Configuration
Comment configurer cette application : via le panneau d'administration ainsi que le fichier de configuration `/var/www/cryptpad/config/config.js`.

Binary file not shown.

After

Width:  |  Height:  |  Size: 116 KiB

View file

@ -8,6 +8,14 @@
},
"version": "4.5.0~ynh2",
"url": "https://cryptpad.fr/",
"upstream": {
"license": "AGPL-3.0-only",
"website": "https://cryptpad.fr/",
"demo": "https://cryptpad.fr/",
"admindoc": "https://docs.cryptpad.fr/en/",
"userdoc": "https://yunohost.org/apps",
"code": "https://github.com/xwiki-labs/cryptpad"
},
"license": "AGPL-3.0-only",
"maintainer": {
"name": "frju365",

View file

@ -90,6 +90,10 @@ ynh_app_setting_set --app=$app --key=final_path --value=$final_path
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$final_path"
chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R $app:$app "$final_path"
#=================================================
# NGINX CONFIGURATION
#=================================================
@ -113,6 +117,7 @@ ynh_add_systemd_config
#=================================================
ynh_add_config --template="../conf/config.js" --destination="$final_path/config/config.js"
chmod 600 "$final_path/config/config.js"
#=================================================
# INSTALL CRYPTPAD
@ -131,9 +136,7 @@ popd || ynh_die
#=================================================
ynh_script_progression --message="Securing files and directories..." --weight=1
chown -R $app:$app $final_path
chmod -R o-rwx $final_path
chmod 600 "$final_path/config/config.js"
#=================================================
# INTEGRATE SERVICE IN YUNOHOST

View file

@ -64,13 +64,10 @@ ynh_script_progression --message="Restoring CryptPad main directory..." --weight
ynh_restore_file --origin_path="$final_path"
#=================================================
# RESTORE USER RIGHTS
#=================================================
# Restore permissions on app files
chown -R $app: $final_path
chmod -R o-rwx $final_path
chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R $app:$app "$final_path"
chmod 600 "$final_path/config/config.js"
#=================================================

View file

@ -89,6 +89,7 @@ then
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$final_path" --keep="$final_path/config/config.js"
chmod 600 "$final_path/config/config.js"
fi
#=================================================
@ -141,9 +142,9 @@ ynh_add_systemd_config
#=================================================
# Set permissions on app files
chown -R $app: $final_path
chmod -R o-rwx $final_path
chmod 600 "$final_path/config/config.js"
chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R $app:$app "$final_path"
#=================================================
# INTEGRATE SERVICE IN YUNOHOST