|
@@ -17,7 +17,7 @@ ynh_script_progression --message="Stopping flohmarkt and CouchDB..." --weight=5
|
|
|
# stop flohmarkt
|
|
# stop flohmarkt
|
|
|
flohmarkt_ynh_stop_service
|
|
flohmarkt_ynh_stop_service
|
|
|
# stop couchdb
|
|
# stop couchdb
|
|
|
-ynh_systemd_action --service_name=couchdb --action="stop"
|
|
|
|
|
|
|
+flohmarkt_ynh_stop_couchdb
|
|
|
|
|
|
|
|
# Upgrade ynh4 → ynh5, change of paths and filenames
|
|
# Upgrade ynh4 → ynh5, change of paths and filenames
|
|
|
# https://matrix.to/#/!PauySEslPVuJCJCwlZ:matrix.org/$auU_rSL6MACt9wkyFGlCQbO8ivFlU0ztYW74TimZdcM?via=matrix.org&via=aria-net.org&via=sans-nuage.fr
|
|
# https://matrix.to/#/!PauySEslPVuJCJCwlZ:matrix.org/$auU_rSL6MACt9wkyFGlCQbO8ivFlU0ztYW74TimZdcM?via=matrix.org&via=aria-net.org&via=sans-nuage.fr
|
|
@@ -30,21 +30,11 @@ fi
|
|
|
|
|
|
|
|
# upgrade couchdb
|
|
# upgrade couchdb
|
|
|
ynh_script_progression --message="Upgrading CouchDB..." --weight=50
|
|
ynh_script_progression --message="Upgrading CouchDB..." --weight=50
|
|
|
-echo "\
|
|
|
|
|
-couchdb couchdb/mode select standalone
|
|
|
|
|
-couchdb couchdb/mode seen true
|
|
|
|
|
-couchdb couchdb/bindaddress string 127.0.0.1
|
|
|
|
|
-couchdb couchdb/bindaddress seen true
|
|
|
|
|
-couchdb couchdb/cookie string $couchdb_magic_cookie
|
|
|
|
|
-couchdb couchdb/adminpass password $password_couchdb_admin
|
|
|
|
|
-couchdb couchdb/adminpass seen true
|
|
|
|
|
-couchdb couchdb/adminpass_again password $password_couchdb_admin
|
|
|
|
|
-couchdb couchdb/adminpass_again seen true" | debconf-set-selections
|
|
|
|
|
-DEBIAN_FRONTEND=noninteractive # apt-get install -y --force-yes couchdb
|
|
|
|
|
-ynh_install_extra_app_dependencies \
|
|
|
|
|
- --repo="deb https://apache.jfrog.io/artifactory/couchdb-deb/ $(lsb_release -c -s) main" \
|
|
|
|
|
- --key="https://couchdb.apache.org/repo/keys.asc" \
|
|
|
|
|
- --package="couchdb"
|
|
|
|
|
|
|
+flohmarkt_ynh_up_inst_couchdb
|
|
|
|
|
+
|
|
|
|
|
+# stop couchdb
|
|
|
|
|
+ynh_script_progression --message="Stop couchdb before updating configuration file..." --weight=1
|
|
|
|
|
+flohmarkt_ynh_stop_couchdb
|
|
|
|
|
|
|
|
# upgrade couchdb config
|
|
# upgrade couchdb config
|
|
|
ynh_script_progression --message="Updating couchdb configuration file..." --weight=1
|
|
ynh_script_progression --message="Updating couchdb configuration file..." --weight=1
|
|
@@ -52,10 +42,9 @@ ynh_add_config --template="../conf/05-flohmarkt.ini" --destination="/opt/couchdb
|
|
|
chown root:couchdb /opt/couchdb/etc/local.d/05-flohmarkt.ini
|
|
chown root:couchdb /opt/couchdb/etc/local.d/05-flohmarkt.ini
|
|
|
chmod 640 /opt/couchdb/etc/local.d/05-flohmarkt.ini
|
|
chmod 640 /opt/couchdb/etc/local.d/05-flohmarkt.ini
|
|
|
|
|
|
|
|
-# start couchdb to pick up changes
|
|
|
|
|
|
|
+# start couchdb
|
|
|
ynh_script_progression --message="Starting couchdb..." --weight=1
|
|
ynh_script_progression --message="Starting couchdb..." --weight=1
|
|
|
-ynh_systemd_action --service_name=couchdb --action="start"
|
|
|
|
|
-systemctl status couchdb
|
|
|
|
|
|
|
+flohmarkt_ynh_start_couchdb
|
|
|
|
|
|
|
|
# install upgrade for flohmarkt
|
|
# install upgrade for flohmarkt
|
|
|
ynh_script_progression --message="Upgrading flohmarkt..." --weight=4
|
|
ynh_script_progression --message="Upgrading flohmarkt..." --weight=4
|