1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/xwiki_ynh.git synced 2024-09-03 20:36:11 +02:00

Fix quotes

This commit is contained in:
Josué Tille 2023-12-06 22:47:37 +01:00
parent e54ca874af
commit bbefe61156
No known key found for this signature in database
GPG key ID: 716A6C99B04194EF
2 changed files with 15 additions and 19 deletions

View file

@ -25,7 +25,7 @@ fi
mkdir -p /var/log/"$app" mkdir -p /var/log/"$app"
ln -s /var/log/"$app" "$install_dir"/logs ln -s /var/log/"$app" "$install_dir"/logs
ynh_script_progression --message="Setting up source files..." --weight=1 ynh_script_progression --message='Setting up source files...' --weight=1
ynh_setup_source --dest_dir="$install_dir" ynh_setup_source --dest_dir="$install_dir"
ynh_setup_source --dest_dir="$install_dir"/webapps/xwiki/WEB-INF/lib/ --source_id=jdbc ynh_setup_source --dest_dir="$install_dir"/webapps/xwiki/WEB-INF/lib/ --source_id=jdbc
@ -53,25 +53,24 @@ ynh_add_config --template=hibernate.cfg.xml --destination="$install_dir"/webapps
ynh_add_config --template=xwiki.cfg --destination="$install_dir"/webapps/xwiki/WEB-INF/xwiki.cfg ynh_add_config --template=xwiki.cfg --destination="$install_dir"/webapps/xwiki/WEB-INF/xwiki.cfg
ynh_add_config --template=xwiki.properties --destination="$install_dir"/webapps/xwiki/WEB-INF/xwiki.properties ynh_add_config --template=xwiki.properties --destination="$install_dir"/webapps/xwiki/WEB-INF/xwiki.properties
enable_super_admin
set_permissions set_permissions
#================================================= #=================================================
# INSTALL EXTENSIONS # INSTALL EXTENSIONS
#================================================= #=================================================
enable_super_admin
# Start a systemd service # Start a systemd service
ynh_systemd_action --service_name=$app --action=start --log_path=systemd --line_match="$systemd_match_start_line" ynh_systemd_action --service_name=$app --action=start --log_path=systemd --line_match="$systemd_match_start_line"
# Install extensions
if [ $install_standard_flavor -eq 1 ]; then if [ $install_standard_flavor -eq 1 ]; then
ynh_script_progression --message="Installing flavor..." ynh_script_progression --message='Installing flavor...'
wait_for_flavor_install wait_for_flavor_install
fi fi
ynh_script_progression --message="Installing LDAP extension..." --weight=1 ynh_script_progression --message='Installing LDAP extension...' --weight=1
install_exension org.xwiki.contrib.ldap:ldap-authenticator $ldap_version install_exension 'org.xwiki.contrib.ldap:ldap-authenticator' "$ldap_version"
# Disable super admin # Disable super admin
ynh_systemd_action --service_name=$app --action=stop ynh_systemd_action --service_name=$app --action=stop
@ -83,7 +82,7 @@ disable_super_admin
# START SYSTEMD SERVICE # START SYSTEMD SERVICE
#================================================= #=================================================
ynh_script_progression --message="Starting a systemd service..." --weight=1 ynh_script_progression --message='Starting a systemd service...' --weight=1
ynh_systemd_action --service_name=$app --action=start --log_path=systemd --line_match="$systemd_match_start_line" ynh_systemd_action --service_name=$app --action=start --log_path=systemd --line_match="$systemd_match_start_line"
#================================================= #=================================================

View file

@ -18,9 +18,9 @@ fi
#================================================= #=================================================
# STOP SYSTEMD SERVICE # STOP SYSTEMD SERVICE
#================================================= #=================================================
ynh_script_progression --message="Stopping a systemd service..." --weight=1 ynh_script_progression --message='Stopping a systemd service..' --weight=1
ynh_systemd_action --service_name=$app --action="stop" --log_path="/var/log/$app/$app.log" ynh_systemd_action --service_name=$app --action=stop --log_path="/var/log/$app/$app.log"
#================================================= #=================================================
# "REBUILD" THE APP (DEPLOY NEW SOURCES, RERUN NPM BUILD...) # "REBUILD" THE APP (DEPLOY NEW SOURCES, RERUN NPM BUILD...)
@ -28,7 +28,7 @@ ynh_systemd_action --service_name=$app --action="stop" --log_path="/var/log/$app
# DOWNLOAD, CHECK AND UNPACK SOURCE # DOWNLOAD, CHECK AND UNPACK SOURCE
#================================================= #=================================================
if [ "$upgrade_type" == "UPGRADE_APP" ] if [ "$upgrade_type" == UPGRADE_APP ]
then then
ynh_setup_source --dest_dir="$install_dir" ynh_setup_source --dest_dir="$install_dir"
fi fi
@ -63,25 +63,22 @@ set_permissions
#================================================= #=================================================
# UPGRADE EXTENSIONS # UPGRADE EXTENSIONS
#================================================= #=================================================
ynh_script_progression --message="Starting a systemd service..." --weight=1 enable_super_admin
# Start a systemd service # Start a systemd service
ynh_systemd_action --service_name=$app --action=start --log_path=systemd --line_match="$systemd_match_start_line" ynh_systemd_action --service_name=$app --action=start --log_path=systemd --line_match="$systemd_match_start_line"
# Install extensions
if [ $install_standard_flavor -eq 1 ]; then if [ $install_standard_flavor -eq 1 ]; then
ynh_script_progression --message="Installing flavor..." ynh_script_progression --message='Installing flavor...'
wait_for_flavor_install wait_for_flavor_install
fi fi
ynh_script_progression --message="Installing LDAP extension..." --weight=1 ynh_script_progression --message='Installing LDAP extension...' --weight=1
install_exension org.xwiki.contrib.ldap:ldap-authenticator $ldap_version install_exension 'org.xwiki.contrib.ldap:ldap-authenticator' "$ldap_version"
# Disable super admin # Disable super admin
ynh_systemd_action --service_name=$app --action=stop ynh_systemd_action --service_name=$app --action=stop
disable_super_admin disable_super_admin
ynh_systemd_action --service_name=$app --action=start --log_path=systemd --line_match="$systemd_match_start_line"
#================================================= #=================================================
# GENERIC FINALIZATION # GENERIC FINALIZATION
@ -89,7 +86,7 @@ ynh_systemd_action --service_name=$app --action=start --log_path=systemd --line_
# START SYSTEMD SERVICE # START SYSTEMD SERVICE
#================================================= #=================================================
ynh_script_progression --message="Starting a systemd service..." --weight=1 ynh_script_progression --message='Starting a systemd service...' --weight=1
ynh_systemd_action --service_name=$app --action=start --log_path=systemd --line_match="$systemd_match_start_line" ynh_systemd_action --service_name=$app --action=start --log_path=systemd --line_match="$systemd_match_start_line"
#================================================= #=================================================