mirror of
https://github.com/YunoHost-Apps/xwiki_ynh.git
synced 2024-09-03 20:36:11 +02:00
Cleanup after auto patch
This commit is contained in:
parent
242720e2de
commit
b5369d1aa7
8 changed files with 16 additions and 11 deletions
|
@ -17,6 +17,7 @@
|
|||
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
|
||||
-->
|
||||
<!-- WARNING: Don't edit this file. All change will be removed after each app upgrade -->
|
||||
<hibernate-configuration>
|
||||
<session-factory>
|
||||
<!-- Please refer to the installation guide on
|
||||
|
|
|
@ -18,6 +18,8 @@
|
|||
# 02110-1301 USA, or see the FSF site: http://www.fsf.org.
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
# WARNING: Don't edit this file. All change will be removed after each app upgrade
|
||||
|
||||
#---------------------------------------
|
||||
# Preamble
|
||||
#
|
||||
|
|
|
@ -18,6 +18,8 @@
|
|||
# 02110-1301 USA, or see the FSF site: http://www.fsf.org.
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
# WARNING: Don't edit this file. All change will be removed after each app upgrade
|
||||
|
||||
# This is the new XWiki configuration file. In the future it'll replace the old
|
||||
# xwiki.cfg file. However right now it's only used by some XWiki components.
|
||||
# As time progresses more and more component will get their configurations from
|
||||
|
|
|
@ -99,7 +99,6 @@ ram.runtime = "1G"
|
|||
allow_email = true
|
||||
|
||||
[resources.install_dir]
|
||||
dir = "/opt/yunohost/__APP__"
|
||||
|
||||
[resources.data_dir]
|
||||
dir = "/home/yunohost.app/__APP__"
|
||||
|
|
|
@ -9,13 +9,13 @@ systemd_match_start_line='oxtjl.NotifyListener:main: ---------------------------
|
|||
flavor_version='16.3.1'
|
||||
ldap_version='9.15.2'
|
||||
|
||||
if [ $install_standard_flavor -eq 1 ]; then
|
||||
if [ "$install_standard_flavor" -eq 1 ]; then
|
||||
distribution_default_ui="distribution.defaultUI=org.xwiki.platform:xwiki-platform-distribution-flavor-mainwiki/$flavor_version"
|
||||
else
|
||||
distribution_default_ui='#'
|
||||
fi
|
||||
|
||||
if [ $path == '/' ]; then
|
||||
if [ "$path" == '/' ]; then
|
||||
install_on_root=true
|
||||
path2=''
|
||||
path3=''
|
||||
|
@ -144,18 +144,18 @@ add_config() {
|
|||
# Note that using /etc/xwiki/xwiki.cfg or /etc/xwiki/xwiki.properties is hard coded on the application
|
||||
# And using this break multi instance feature so we must use an other path
|
||||
# Note that symlink don't work. So use hard link instead.
|
||||
ln -f /etc/$app/xwiki_conf.cfg "$web_inf_path"/xwiki.cfg
|
||||
ln -f /etc/$app/xwiki_conf.properties "$web_inf_path"/xwiki.properties
|
||||
ln -f /etc/"$app"/xwiki_conf.cfg "$web_inf_path"/xwiki.cfg
|
||||
ln -f /etc/"$app"/xwiki_conf.properties "$web_inf_path"/xwiki.properties
|
||||
}
|
||||
|
||||
set_permissions() {
|
||||
#REMOVEME? Assuming the install dir is setup using ynh_setup_source, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chmod -R u+rwX,o-rwx "$install_dir"
|
||||
#REMOVEME? Assuming the install dir is setup using ynh_setup_source, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chown -R "$app:$app" "$install_dir"
|
||||
chmod -R u+rwX,o-rwx "$install_dir"
|
||||
chown -R "$app:$app" "$install_dir"
|
||||
chmod -R u=rwX,g=rX,o= /etc/"$app"
|
||||
chown -R "$app:$app" /etc/"$app"
|
||||
|
||||
#REMOVEME? Assuming ynh_config_add_logrotate is called, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chown "$app:$app" -R /var/log/"$app"
|
||||
#REMOVEME? Assuming ynh_config_add_logrotate is called, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chmod u=rwX,g=rX,o= -R /var/log/"$app"
|
||||
chown "$app:$app" -R /var/log/"$app"
|
||||
chmod u=rwX,g=rX,o= -R /var/log/"$app"
|
||||
|
||||
find "$data_dir" \( \! -perm -o= \
|
||||
-o \! -user "$app" \
|
||||
|
|
|
@ -73,7 +73,7 @@ disable_super_admin
|
|||
# START SYSTEMD SERVICE
|
||||
#=================================================
|
||||
|
||||
ynh_script_progression 'Starting $app's systemd service...'
|
||||
ynh_script_progression "Starting $app's systemd service..."
|
||||
ynh_systemctl --service="$app" --action=start --log_path=systemd --wait_until="$systemd_match_start_line"
|
||||
wait_xwiki_started
|
||||
|
||||
|
|
|
@ -74,7 +74,7 @@ disable_super_admin
|
|||
# START SYSTEMD SERVICE
|
||||
#=================================================
|
||||
|
||||
ynh_script_progression 'Starting $app's systemd service...'
|
||||
ynh_script_progression "Starting $app's systemd service..."
|
||||
ynh_systemctl --service="$app" --action=start --log_path=systemd --wait_until="$systemd_match_start_line"
|
||||
wait_xwiki_started
|
||||
|
||||
|
|
|
@ -5,3 +5,4 @@ test_format = 1.0
|
|||
# ------------
|
||||
# Tests to run
|
||||
# ------------
|
||||
test_upgrade_from.0bfd0bdfeed0696c71fd79727a28fccc8822e123.name = "Before helper 2.1"
|
||||
|
|
Loading…
Add table
Reference in a new issue