mirror of
https://github.com/YunoHost-Apps/pleroma_ynh.git
synced 2024-09-03 20:15:59 +02:00
Fix upgrade: set user shell
This commit is contained in:
parent
d6390e13de
commit
606289a2f5
1 changed files with 5 additions and 0 deletions
|
@ -76,6 +76,11 @@ if ynh_compare_current_package_version --comparison le --version "2.0.5~ynh1"; t
|
||||||
cat "../conf/ldap.exs" >> "$config"
|
cat "../conf/ldap.exs" >> "$config"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if ynh_compare_current_package_version --comparison lt --version "2.5.5~ynh2"; then
|
||||||
|
# packaging v1 did not set a shell
|
||||||
|
usermod -s /bin/sh "$app"
|
||||||
|
fi
|
||||||
|
|
||||||
ynh_replace_string --target_file="$config" \
|
ynh_replace_string --target_file="$config" \
|
||||||
--match_string="config :pleroma, configurable_from_database: false" \
|
--match_string="config :pleroma, configurable_from_database: false" \
|
||||||
--replace_string="config :pleroma, configurable_from_database: true"
|
--replace_string="config :pleroma, configurable_from_database: true"
|
||||||
|
|
Loading…
Add table
Reference in a new issue