1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/galette_ynh.git synced 2024-09-03 18:36:28 +02:00

fix linter and upgrade

This commit is contained in:
Jean-Baptiste Holcroft 2019-09-25 21:04:44 +02:00
parent 65cd8b5423
commit 7009e08730
5 changed files with 21 additions and 22 deletions

View file

@ -4,9 +4,9 @@
"packaging_format": 1, "packaging_format": 1,
"url": "https://www.galette.eu", "url": "https://www.galette.eu",
"license": "GPL-3.0-or-later", "license": "GPL-3.0-or-later",
"version": "0.9.1.2~ynh1", "version": "0.9.1.2~ynh2",
"requirements": { "requirements": {
"yunohost": ">= 2.7.9" "yunohost": ">= 3.6"
}, },
"services": [ "services": [
"nginx", "nginx",
@ -44,7 +44,10 @@
{ {
"name": "is_public", "name": "is_public",
"ask": { "ask": {
"en": "Is it a public application ?" "en": "Is it a public application?"
},
"help": {
"en": "If no, only connected YunoHost users will be able to interact with the app"
}, },
"type": "boolean", "type": "boolean",
"default": "0" "default": "0"

View file

@ -6,12 +6,8 @@
# IMPORT GENERIC HELPERS # IMPORT GENERIC HELPERS
#================================================= #=================================================
if [ ! -e _common.sh ]; then #Keep this path for calling _common.sh inside the execution's context of backup and restore scripts
# Get the _common.sh file if it's not in the current directory source ../settings/scripts/_common.sh
cp ../settings/scripts/_common.sh ./_common.sh
chmod a+rx _common.sh
fi
source _common.sh
source /usr/share/yunohost/helpers source /usr/share/yunohost/helpers
#================================================= #=================================================

View file

@ -150,7 +150,7 @@ systemctl reload nginx
message="Galette need you to finish the installation manually. message="Galette need you to finish the installation manually.
Please open "https://$domain$path_url" Please open "$domain/$path_url" and finish the install process.
Database information you'll need: Database information you'll need:
Type: mysql Type: mysql
@ -160,10 +160,9 @@ User: "$db_name"
Password: "$db_pwd" Password: "$db_pwd"
Name: "$db_name" Name: "$db_name"
Important: after the installation, you _should_ run: Important! Once done, please remember to run as root or with sudo:
\`chmod -R 500 "$final_path/config"\` \`chmod -R 500 "$final_path/config"\`
\`rm -rf "$final_path/install"\` \`rm -fr "$final_path/install"\`
If you facing an issue or want to improve this app, please open a new issue in this project: https://github.com/YunoHost-Apps/galette_ynh" If you facing an issue or want to improve this app, please open a new issue in this project: https://github.com/YunoHost-Apps/galette_ynh"

View file

@ -1,17 +1,14 @@
#!/bin/bash #!/bin/bash
#================================================= #=================================================
# GENERIC START # GENERIC START
#================================================= #=================================================
# IMPORT GENERIC HELPERS # IMPORT GENERIC HELPERS
#================================================= #=================================================
if [ ! -e _common.sh ]; then #Keep this path for calling _common.sh inside the execution's context of backup and restore scripts
# Get the _common.sh file if it's not in the current directory source ../settings/scripts/_common.sh
cp ../settings/scripts/_common.sh ./_common.sh
chmod a+rx _common.sh
fi
source _common.sh
source /usr/share/yunohost/helpers source /usr/share/yunohost/helpers
#================================================= #=================================================

View file

@ -89,7 +89,10 @@ ynh_setup_source "$final_path"
mv "$final_path"/galette/* "$final_path"/ mv "$final_path"/galette/* "$final_path"/
ynh_secure_remove "$final_path"/tests ynh_secure_remove "$final_path"/tests
cp "$final_path.old/config/config.inc.php" "$final_path/config/config.inc.php" # when running automatic tests, there is no config.inc.php
if [ -e "$final_path.old/config/config.inc.php" ]; then
cp "$final_path.old/config/config.inc.php" "$final_path/config/config.inc.php"
fi
# delete temp directory # delete temp directory
ynh_secure_remove "$final_path.old" ynh_secure_remove "$final_path.old"
@ -185,8 +188,9 @@ User: "$db_name"
Password: "$db_pwd" Password: "$db_pwd"
Name: "$db_name" Name: "$db_name"
\`sudo chmod -R 500 "$final_path/config"\` Important! Once done, please remember to run as root or with sudo:
\`sudo rm -rf "$final_path/install"\` \`chmod -R 500 "$final_path/config"\`
\`rm -fr "$final_path/install"\`
If you facing an issue or want to improve this app, please open a new issue in this project: https://github.com/YunoHost-Apps/galette_ynh" If you facing an issue or want to improve this app, please open a new issue in this project: https://github.com/YunoHost-Apps/galette_ynh"