#!/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"