1
0
Fork 0
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:
Josué Tille 2024-08-31 11:39:28 +02:00
parent 242720e2de
commit b5369d1aa7
No known key found for this signature in database
GPG key ID: 5F259226AD51F2F5
8 changed files with 16 additions and 11 deletions

View file

@ -17,6 +17,7 @@
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org. * 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> <hibernate-configuration>
<session-factory> <session-factory>
<!-- Please refer to the installation guide on <!-- Please refer to the installation guide on

View file

@ -18,6 +18,8 @@
# 02110-1301 USA, or see the FSF site: http://www.fsf.org. # 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 # Preamble
# #

View file

@ -18,6 +18,8 @@
# 02110-1301 USA, or see the FSF site: http://www.fsf.org. # 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 # 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. # 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 # As time progresses more and more component will get their configurations from

View file

@ -99,7 +99,6 @@ ram.runtime = "1G"
allow_email = true allow_email = true
[resources.install_dir] [resources.install_dir]
dir = "/opt/yunohost/__APP__"
[resources.data_dir] [resources.data_dir]
dir = "/home/yunohost.app/__APP__" dir = "/home/yunohost.app/__APP__"

View file

@ -9,13 +9,13 @@ systemd_match_start_line='oxtjl.NotifyListener:main: ---------------------------
flavor_version='16.3.1' flavor_version='16.3.1'
ldap_version='9.15.2' 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" distribution_default_ui="distribution.defaultUI=org.xwiki.platform:xwiki-platform-distribution-flavor-mainwiki/$flavor_version"
else else
distribution_default_ui='#' distribution_default_ui='#'
fi fi
if [ $path == '/' ]; then if [ "$path" == '/' ]; then
install_on_root=true install_on_root=true
path2='' path2=''
path3='' 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 # 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 # 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. # 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.cfg "$web_inf_path"/xwiki.cfg
ln -f /etc/$app/xwiki_conf.properties "$web_inf_path"/xwiki.properties ln -f /etc/"$app"/xwiki_conf.properties "$web_inf_path"/xwiki.properties
} }
set_permissions() { 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" 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" chown -R "$app:$app" "$install_dir"
chmod -R u=rwX,g=rX,o= /etc/"$app" chmod -R u=rwX,g=rX,o= /etc/"$app"
chown -R "$app:$app" /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" 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" chmod u=rwX,g=rX,o= -R /var/log/"$app"
find "$data_dir" \( \! -perm -o= \ find "$data_dir" \( \! -perm -o= \
-o \! -user "$app" \ -o \! -user "$app" \

View file

@ -73,7 +73,7 @@ disable_super_admin
# START SYSTEMD SERVICE # 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" ynh_systemctl --service="$app" --action=start --log_path=systemd --wait_until="$systemd_match_start_line"
wait_xwiki_started wait_xwiki_started

View file

@ -74,7 +74,7 @@ disable_super_admin
# START SYSTEMD SERVICE # 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" ynh_systemctl --service="$app" --action=start --log_path=systemd --wait_until="$systemd_match_start_line"
wait_xwiki_started wait_xwiki_started

View file

@ -5,3 +5,4 @@ test_format = 1.0
# ------------ # ------------
# Tests to run # Tests to run
# ------------ # ------------
test_upgrade_from.0bfd0bdfeed0696c71fd79727a28fccc8822e123.name = "Before helper 2.1"