2021-12-27 18:31:01 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# GENERIC START
|
|
|
|
#=================================================
|
|
|
|
# IMPORT GENERIC HELPERS
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
source _common.sh
|
|
|
|
source /usr/share/yunohost/helpers
|
|
|
|
|
2024-01-12 14:53:23 +01:00
|
|
|
path="/"
|
2021-12-27 18:31:01 +01:00
|
|
|
|
|
|
|
#=================================================
|
2023-01-10 15:51:22 +01:00
|
|
|
# STANDARD MODIFICATIONS
|
2021-12-27 18:31:01 +01:00
|
|
|
#=================================================
|
2023-01-10 15:51:22 +01:00
|
|
|
# SETUP SOURCE
|
2021-12-27 18:31:01 +01:00
|
|
|
#=================================================
|
2023-01-10 15:51:22 +01:00
|
|
|
ynh_script_progression --message="Setting up source files..." --weight=1
|
2021-12-27 18:31:01 +01:00
|
|
|
|
2024-01-12 14:53:23 +01:00
|
|
|
# Download, check integrity, uncompress and patch the source from manifest.toml
|
|
|
|
ynh_setup_source --dest_dir="$install_dir"
|
2021-12-27 18:31:01 +01:00
|
|
|
|
2024-01-12 14:53:23 +01:00
|
|
|
chmod o-rwx "$install_dir"
|
|
|
|
chown -R "$app:www-data" "$install_dir"
|
2021-12-27 18:31:01 +01:00
|
|
|
|
2023-01-10 15:51:22 +01:00
|
|
|
#=================================================
|
2024-01-12 14:53:23 +01:00
|
|
|
# SYSTEM CONFIGURATION
|
2023-01-10 15:51:22 +01:00
|
|
|
#=================================================
|
2024-01-12 14:53:23 +01:00
|
|
|
ynh_script_progression --message="Adding system configurations related to $app..." --weight=1
|
2023-01-10 15:51:22 +01:00
|
|
|
|
|
|
|
# Create a dedicated NGINX config
|
|
|
|
ynh_add_nginx_config
|
|
|
|
|
2021-12-27 18:31:01 +01:00
|
|
|
#=================================================
|
|
|
|
# END OF SCRIPT
|
|
|
|
#=================================================
|
|
|
|
|
2021-12-31 12:17:58 +01:00
|
|
|
ynh_script_progression --message="Installation of $app completed" --last
|