2024-11-09 17:37:18 +01:00
|
|
|
#!/bin/bash
|
|
|
|
### App file generated with YoloGen, the Yunohost app generator, version .
|
|
|
|
|
|
|
|
source _common.sh
|
|
|
|
source /usr/share/yunohost/helpers
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# INSTALL DEPENDENCIES
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
|
|
|
#=================================================
|
|
|
|
ynh_script_progression "Setting up source files..."
|
|
|
|
|
|
|
|
ynh_setup_source --dest_dir="$install_dir"
|
|
|
|
|
|
|
|
chown -R $app:www-data "$install_dir"
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# ADD A CONFIGURATION
|
|
|
|
#=================================================
|
2024-11-09 18:49:42 +01:00
|
|
|
#ynh_script_progression "Adding app's configuration file..."
|
2024-11-09 17:37:18 +01:00
|
|
|
|
2024-11-09 18:49:42 +01:00
|
|
|
#ynh_config_add --template="" --destination="$install_dir/"
|
2024-11-09 17:37:18 +01:00
|
|
|
|
2024-11-09 18:49:42 +01:00
|
|
|
#chmod 400 "$install_dir/"
|
|
|
|
#chown "$app:$app" "$install_dir/"
|
2024-11-09 17:37:18 +01:00
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# SYSTEM CONFIGURATION
|
|
|
|
#=================================================
|
|
|
|
ynh_script_progression "Adding system configurations related to $app..."
|
|
|
|
|
|
|
|
ynh_config_add_nginx
|
|
|
|
|
|
|
|
ynh_config_add_logrotate
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# INSTALL APP
|
|
|
|
#=================================================
|
|
|
|
ynh_script_progression "Installing $app..."
|
|
|
|
|
|
|
|
pushd $install_dir
|
2024-11-09 18:49:42 +01:00
|
|
|
# some_command --build
|
2024-11-09 17:37:18 +01:00
|
|
|
popd
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# FINALIZE APP INSTALL WITH CURL
|
|
|
|
#=================================================
|
|
|
|
ynh_script_progression "Finalizing installation..."
|
|
|
|
|
2024-11-09 18:49:42 +01:00
|
|
|
#ynh_local_curl "/INSTALL_PATH" "key1=value1" "key2=value2" "key3=value3"
|
2024-11-09 17:37:18 +01:00
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# END OF SCRIPT
|
|
|
|
#=================================================
|
|
|
|
|
2024-11-09 18:49:42 +01:00
|
|
|
ynh_script_progression "Installation of $app completed"
|