mirror of
https://github.com/YunoHost/example_ynh.git
synced 2024-09-03 20:06:13 +02:00
Update install
This commit is contained in:
parent
cc90ff5c6e
commit
2714146389
1 changed files with 8 additions and 4 deletions
|
@ -139,9 +139,13 @@ ynh_script_progression --message="Setting up source files..." --time --weight=1
|
||||||
ynh_app_setting_set --app=$app --key=final_path --value=$final_path
|
ynh_app_setting_set --app=$app --key=final_path --value=$final_path
|
||||||
# Download, check integrity, uncompress and patch the source from app.src
|
# Download, check integrity, uncompress and patch the source from app.src
|
||||||
#sw. ynh_setup_source --dest_dir="$final_path"
|
#sw. ynh_setup_source --dest_dir="$final_path"
|
||||||
sudo cp -a /home/admin/source/. "$final_path"
|
|
||||||
|
# sudo mkdir -p "$final_path"
|
||||||
|
cp -a /home/admin/source/. "$final_path"
|
||||||
#sw. sudo cp -a ../sources/. $final_path
|
#sw. sudo cp -a ../sources/. $final_path
|
||||||
|
|
||||||
|
sleep 120s
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# NGINX CONFIGURATION
|
# NGINX CONFIGURATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -217,8 +221,8 @@ ynh_add_systemd_config
|
||||||
chown -R $app: $final_path
|
chown -R $app: $final_path
|
||||||
|
|
||||||
# Set the app as temporarily public for curl call
|
# Set the app as temporarily public for curl call
|
||||||
ynh_script_progression --message="Configuring SSOwat..." --time --weight=1
|
#sw. ynh_script_progression --message="Configuring SSOwat..." --time --weight=1
|
||||||
ynh_app_setting_set --app=$app --key=skipped_uris --value="/"
|
#sw. ynh_app_setting_set --app=$app --key=skipped_uris --value="/"
|
||||||
# Reload SSOwat config
|
# Reload SSOwat config
|
||||||
yunohost app ssowatconf
|
yunohost app ssowatconf
|
||||||
|
|
||||||
|
@ -227,7 +231,7 @@ ynh_systemd_action --service_name=nginx --action=reload
|
||||||
|
|
||||||
# Installation with curl
|
# Installation with curl
|
||||||
ynh_script_progression --message="Finalizing installation..." --time --weight=1
|
ynh_script_progression --message="Finalizing installation..." --time --weight=1
|
||||||
#sw. ynh_local_curl "/INSTALL_PATH" "key1=value1" "key2=value2" "key3=value3"
|
ynh_local_curl "/INSTALL_PATH" "key1=value1" "key2=value2" "key3=value3"
|
||||||
|
|
||||||
# Remove the public access
|
# Remove the public access
|
||||||
if [ $is_public -eq 0 ]
|
if [ $is_public -eq 0 ]
|
||||||
|
|
Loading…
Add table
Reference in a new issue