2019-02-21 10:52:01 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# GENERIC START
|
|
|
|
#=================================================
|
|
|
|
# IMPORT GENERIC HELPERS
|
|
|
|
#=================================================
|
|
|
|
|
2021-05-16 17:45:38 +02:00
|
|
|
source _common.sh
|
2019-02-21 10:52:01 +01:00
|
|
|
source /usr/share/yunohost/helpers
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
|
|
|
#=================================================
|
2020-10-10 19:02:26 +02:00
|
|
|
ynh_script_progression --message="Setting up source files..." --weight=1
|
2019-02-21 10:52:01 +01:00
|
|
|
|
2023-11-10 09:56:58 +01:00
|
|
|
mv ../sources/dist/ "$install_dir"
|
2019-02-21 10:52:01 +01:00
|
|
|
|
2023-06-13 18:21:12 +02:00
|
|
|
chmod -R o-rwx "$install_dir"
|
|
|
|
chown -R $app:www-data "$install_dir"
|
2021-05-16 17:45:38 +02:00
|
|
|
|
2019-02-21 10:52:01 +01:00
|
|
|
#=================================================
|
|
|
|
# NGINX CONFIGURATION
|
|
|
|
#=================================================
|
2020-10-10 19:02:26 +02:00
|
|
|
ynh_script_progression --message="Configuring NGINX web server..." --weight=1
|
2019-02-21 10:52:01 +01:00
|
|
|
|
2020-10-10 19:02:26 +02:00
|
|
|
# Create a dedicated NGINX config
|
2019-02-21 10:52:01 +01:00
|
|
|
ynh_add_nginx_config
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# END OF SCRIPT
|
|
|
|
#=================================================
|
|
|
|
|
2021-05-16 17:45:38 +02:00
|
|
|
ynh_script_progression --message="Installation of $app completed" --last
|