Commit c2aa02ab authored by Francois Marier's avatar Francois Marier
Browse files

Small fixes to the maintainer scripts

- Fix the name of the preinst script
- Make all scripts executable
- Make the common-functions POSIX-compliant
- Use the default shell instead of hard-coding bash
parent d9385aef
function restart_apache {
restart_apache() {
if (apachectl configtest >/dev/null 2>&1); then
echo "Gracefully restarting apache"
apachectl graceful
......@@ -10,7 +10,7 @@ function restart_apache {
fi
}
function restart_apache2 {
restart_apache2() {
if (apache2ctl configtest >/dev/null 2>&1); then
echo "Gracefully restarting apache2"
apache2ctl graceful
......
#!/bin/bash
#!/bin/sh
# postinst script for mahara-apache
#
# see: dh_installdeb(1)
......
#!/bin/bash
#!/bin/sh
# postrm script for mahara
#
# see: dh_installdeb(1)
......
#!/bin/bash
#!/bin/sh
# postinst script for mahara-apache2
#
# see: dh_installdeb(1)
......
#!/bin/bash
#!/bin/sh
# postrm script for mahara
#
# see: dh_installdeb(1)
......
#!/bin/bash
#!/bin/sh
# postinst script for mahara-apache
#
# see: dh_installdeb(1)
......
#!/bin/bash
#!/bin/sh
# postrm script for mahara
#
# see: dh_installdeb(1)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment