The website is done in English. There are some placeholder things for nl and fr as well, but the language header on the en page is commented out There are no links in the README.md to the actual repo, only mentions to it I wanted everything set up and done before changing those things
51 lines
1.3 KiB
Bash
51 lines
1.3 KiB
Bash
#!/bin/bash
|
|
|
|
#=================================================
|
|
# GENERIC START
|
|
#=================================================
|
|
# IMPORT GENERIC HELPERS
|
|
#=================================================
|
|
|
|
source /usr/share/yunohost/helpers
|
|
source _common.sh
|
|
|
|
#=================================================
|
|
# LOAD SETTINGS
|
|
#=================================================
|
|
|
|
app=$YNH_APP_INSTANCE_NAME
|
|
|
|
domain=$(ynh_app_setting_get $app domain)
|
|
path_url=$(ynh_app_setting_get $app path_url)
|
|
app_user=$(ynh_app_setting_get $app app_user)
|
|
www_path=$(ynh_app_setting_get $app www_path)
|
|
|
|
#=================================================
|
|
# ACTIVE TRAP
|
|
#=================================================
|
|
|
|
# Exit if an error occurs during the execution of the script
|
|
ynh_abort_if_errors
|
|
|
|
#=================================================
|
|
# STANDARD UPGRADE STEPS
|
|
#=================================================
|
|
# REINSTALL STATIC FILES
|
|
#=================================================
|
|
|
|
ynh_print_info "Installing static site..."
|
|
|
|
rm -rf $www_path
|
|
mkdir -p $www_path
|
|
cp -r ../sources/. $www_path
|
|
chown -R $app_user: $www_path
|
|
|
|
sed -i "s@PATHTOCHANGE@$path_url@g" ../conf/nginx.conf
|
|
sed -i "s@ALIASTOCHANGE@$www_path@g" ../conf/nginx.conf
|
|
|
|
cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$app.conf
|
|
|
|
nginx -tq
|
|
service nginx reload
|
|
|