mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Clean systemd services install and really fix firewall
This commit is contained in:
parent
4e790e2626
commit
1beadf3051
4 changed files with 3 additions and 10 deletions
1
debian/postinst
vendored
1
debian/postinst
vendored
|
@ -4,7 +4,6 @@ set -e
|
||||||
|
|
||||||
do_configure() {
|
do_configure() {
|
||||||
rm -rf /var/cache/moulinette/*
|
rm -rf /var/cache/moulinette/*
|
||||||
service yunohost-api restart
|
|
||||||
|
|
||||||
if [ ! -f /etc/yunohost/installed ]; then
|
if [ ! -f /etc/yunohost/installed ]; then
|
||||||
bash /usr/share/yunohost/hooks/conf_regen/01-yunohost
|
bash /usr/share/yunohost/hooks/conf_regen/01-yunohost
|
||||||
|
|
5
debian/rules
vendored
5
debian/rules
vendored
|
@ -5,11 +5,8 @@
|
||||||
#export DH_VERBOSE=1
|
#export DH_VERBOSE=1
|
||||||
|
|
||||||
%:
|
%:
|
||||||
dh ${@} --with=python2
|
dh ${@} --with=python2,systemd
|
||||||
|
|
||||||
override_dh_installinit:
|
override_dh_installinit:
|
||||||
dh_systemd_enable --name yunohost-api
|
|
||||||
dh_systemd_enable --name yunohost-firewall --no-enable
|
|
||||||
dh_installinit --name=yunohost-api
|
dh_installinit --name=yunohost-api
|
||||||
dh_installinit --name=yunohost-firewall
|
dh_installinit --name=yunohost-firewall
|
||||||
dh_systemd_start
|
|
||||||
|
|
3
debian/yunohost-firewall.service
vendored
3
debian/yunohost-firewall.service
vendored
|
@ -9,6 +9,3 @@ ExecStart=/usr/bin/yunohost firewall reload
|
||||||
ExecReload=/usr/bin/yunohost firewall reload
|
ExecReload=/usr/bin/yunohost firewall reload
|
||||||
ExecStop=/usr/bin/yunohost firewall stop
|
ExecStop=/usr/bin/yunohost firewall stop
|
||||||
RemainAfterExit=yes
|
RemainAfterExit=yes
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
|
|
|
@ -270,12 +270,12 @@ def tools_postinstall(domain, password, ignore_dyndns=False):
|
||||||
# Enable UPnP silently and reload firewall
|
# Enable UPnP silently and reload firewall
|
||||||
firewall_upnp('enable', no_refresh=True)
|
firewall_upnp('enable', no_refresh=True)
|
||||||
|
|
||||||
|
os.system('touch /etc/yunohost/installed')
|
||||||
|
|
||||||
# Enable and start YunoHost firewall at boot time
|
# Enable and start YunoHost firewall at boot time
|
||||||
os.system('update-rc.d yunohost-firewall enable')
|
os.system('update-rc.d yunohost-firewall enable')
|
||||||
os.system('service yunohost-firewall start')
|
os.system('service yunohost-firewall start')
|
||||||
|
|
||||||
os.system('touch /etc/yunohost/installed')
|
|
||||||
|
|
||||||
service_regenconf(force=True)
|
service_regenconf(force=True)
|
||||||
|
|
||||||
msignals.display(m18n.n('yunohost_configured'), 'success')
|
msignals.display(m18n.n('yunohost_configured'), 'success')
|
||||||
|
|
Loading…
Add table
Reference in a new issue