mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Remove old PAM config file at package postinstall
This commit is contained in:
parent
3339cd029a
commit
7223a627af
1 changed files with 4 additions and 2 deletions
6
debian/postinst
vendored
6
debian/postinst
vendored
|
@ -17,11 +17,13 @@ do_configure() {
|
||||||
# restart yunohost-firewall if it's running
|
# restart yunohost-firewall if it's running
|
||||||
service yunohost-firewall status >/dev/null \
|
service yunohost-firewall status >/dev/null \
|
||||||
&& restart_yunohost_firewall \
|
&& restart_yunohost_firewall \
|
||||||
|| echo "Service yunohost-firewall is not running, you should " \
|
|| echo "yunohost-firewall service is not running, you should " \
|
||||||
"consider to start it by doing 'service yunohost-firewall start'."
|
"consider to start it by doing 'service yunohost-firewall start'."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# update PAM configs
|
# remove old PAM config and update it
|
||||||
|
[[ ! -f /usr/share/pam-configs/my_mkhomedir ]] \
|
||||||
|
|| rm /usr/share/pam-configs/my_mkhomedir
|
||||||
pam-auth-update --package
|
pam-auth-update --package
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue