apache2: create log/run directory via pkg_postinst

The commit e789c3837c tries to create
log/run directory in initscript/systemd unit file. This is not a correct
method. We should create them in pkg_postinst.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit 6f4d0dbfbc)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
Yi Zhao
2020-05-22 10:54:49 +08:00
committed by Armin Kuster
parent 222ff0f9dc
commit 1a42752afa
5 changed files with 23 additions and 9 deletions
@@ -97,11 +97,6 @@ do_start()
return 1
fi
mkdir -p /var/log/apache2
chmod -R 0755 /var/log/apache2
mkdir -p /var/run/apache2
chmod -R 0755 /var/run/apache2
if apache_conftest ; then
$APACHECTL start
apache_wait_start $?