Aligner le paquet sur le modèle YunoHost
This commit is contained in:
parent
1a45355ed3
commit
7ae2307abf
16 changed files with 302 additions and 35 deletions
|
|
@ -1,10 +1,47 @@
|
|||
#!/bin/bash
|
||||
|
||||
#=================================================
|
||||
# IMPORT GENERIC HELPERS
|
||||
#=================================================
|
||||
|
||||
source _common.sh
|
||||
ynh_script_progression --message="Installation de Globinours..."
|
||||
source /usr/share/yunohost/helpers
|
||||
|
||||
#=================================================
|
||||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||
#=================================================
|
||||
|
||||
ynh_script_progression "Setting up source files..."
|
||||
|
||||
ynh_setup_source --dest_dir="$install_dir"
|
||||
|
||||
#=================================================
|
||||
# APP INITIAL CONFIGURATION
|
||||
#=================================================
|
||||
|
||||
prepare_persistent_paths
|
||||
install_yunohost_logo
|
||||
|
||||
#=================================================
|
||||
# SYSTEM CONFIGURATION
|
||||
#=================================================
|
||||
|
||||
ynh_script_progression "Adding system configurations related to $app..."
|
||||
|
||||
ynh_config_add_phpfpm
|
||||
ynh_config_add_nginx
|
||||
|
||||
#=================================================
|
||||
# INITIALIZE THE APPLICATION
|
||||
#=================================================
|
||||
|
||||
ynh_script_progression "Initializing the database..."
|
||||
|
||||
ynh_exec_as_app php "$install_dir/scripts/migrate.php"
|
||||
|
||||
ynh_systemctl --service="php$php_version-fpm" --action=reload
|
||||
|
||||
#=================================================
|
||||
# END OF SCRIPT
|
||||
#=================================================
|
||||
|
||||
ynh_script_progression "Installation of $app completed"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue