1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/cinny_ynh.git synced 2024-09-03 18:16:13 +02:00
cinny_ynh/scripts/install

46 lines
1.4 KiB
Text
Raw Normal View History

2014-10-20 18:55:53 +02:00
#!/bin/bash
2017-06-02 18:23:51 +02:00
#=================================================
2017-06-17 17:49:26 +02:00
# GENERIC START
2017-06-02 18:23:51 +02:00
#=================================================
# IMPORT GENERIC HELPERS
#=================================================
2017-06-05 13:11:48 +02:00
source _common.sh
2017-06-02 18:23:51 +02:00
source /usr/share/yunohost/helpers
#=================================================
# STANDARD MODIFICATIONS
#=================================================
2017-06-02 18:23:51 +02:00
#=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE
#=================================================
ynh_script_progression --message="Setting up source files..." --weight=1
2017-06-02 18:23:51 +02:00
2023-01-17 17:03:19 +01:00
#REMOVEME? ynh_app_setting_set --app=$app --key=install_dir --value=$install_dir
2017-06-02 18:23:51 +02:00
# Download, check integrity, uncompress and patch the source from app.src
2023-01-17 17:03:19 +01:00
ynh_setup_source --dest_dir="$install_dir"
2017-06-02 18:23:51 +02:00
2023-01-17 17:03:19 +01:00
chmod 750 "$install_dir"
chmod -R o-rwx "$install_dir"
chown -R "$app:www-data" "$install_dir"
2017-06-02 18:23:51 +02:00
#=================================================
# NGINX CONFIGURATION
#=================================================
ynh_script_progression --message="Configuring NGINX web server..." --weight=1
2017-06-02 18:23:51 +02:00
2020-08-02 15:41:28 +02:00
# Create a dedicated NGINX config
ynh_add_nginx_config
2017-06-02 18:23:51 +02:00
#=================================================
2017-06-17 17:49:26 +02:00
# GENERIC FINALIZATION
2017-06-02 18:23:51 +02:00
#=================================================
2019-02-10 15:02:38 +01:00
#=================================================
# END OF SCRIPT
#=================================================
ynh_script_progression --message="Installation of $app completed" --last