2016-06-27 10:27:19 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2020-10-13 23:38:00 +02:00
|
|
|
#=================================================
|
|
|
|
# GENERIC START
|
|
|
|
#=================================================
|
|
|
|
# IMPORT GENERIC HELPERS
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
source _common.sh
|
|
|
|
source /usr/share/yunohost/helpers
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
|
|
|
#=================================================
|
2021-06-28 08:24:55 +02:00
|
|
|
ynh_script_progression --message="Setting up source files..." --weight=1
|
2020-10-13 23:38:00 +02:00
|
|
|
|
2023-10-15 09:56:27 +02:00
|
|
|
#REMOVEME? ynh_app_setting_set --app=$app --key=install_dir --value=$install_dir
|
2020-10-13 23:38:00 +02:00
|
|
|
# Download, check integrity, uncompress and patch the source from app.src
|
2023-10-15 09:56:27 +02:00
|
|
|
ynh_setup_source --dest_dir="$install_dir"
|
2020-10-13 23:38:00 +02:00
|
|
|
|
2023-10-15 09:56:27 +02:00
|
|
|
chmod 750 "$install_dir"
|
|
|
|
chmod -R o-rwx "$install_dir"
|
|
|
|
chown -R $app:www-data "$install_dir"
|
2021-06-28 08:24:55 +02:00
|
|
|
|
2020-10-13 23:38:00 +02:00
|
|
|
#=================================================
|
|
|
|
# NGINX CONFIGURATION
|
|
|
|
#=================================================
|
2021-06-28 08:24:55 +02:00
|
|
|
ynh_script_progression --message="Configuring NGINX web server..." --weight=1
|
2020-10-13 23:38:00 +02:00
|
|
|
|
2021-06-28 08:47:54 +02:00
|
|
|
# Create a dedicated NGINX config
|
2020-11-07 19:17:58 +01:00
|
|
|
ynh_add_nginx_config
|
2020-10-13 23:38:00 +02:00
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# END OF SCRIPT
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
ynh_script_progression --message="Installation of $app completed" --last
|