easyappointments_ynh/scripts/install
Éric Gaspar a096a08ef7 cleaning
2024-09-28 23:07:44 +02:00

35 lines
1,019 B
Bash

#!/bin/bash
source _common.sh
source /usr/share/yunohost/helpers
#=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE
#=================================================
ynh_script_progression "Setting up source files..."
ynh_setup_source --dest_dir="$install_dir"
chmod -R 770 "$install_dir/storage"
#=================================================
# SYSTEM CONFIGURATION
#=================================================
ynh_script_progression "Adding system configurations related to $app..."
ynh_config_add_nginx
ynh_config_add_phpfpm
#=================================================
# ADD A CONFIGURATION
#=================================================
ynh_script_progression "Adding $app's configuration..."
ynh_config_add --template="config.php" --destination="$install_dir/config.php"
#=================================================
# END OF SCRIPT
#=================================================
ynh_script_progression "Installation of $app completed"