mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-15 16:07:26 +00:00
apache2: create log/run directory via pkg_postinst
The commite789c3837ctries 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 commit6f4d0dbfbc) Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
@@ -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 $?
|
||||
|
||||
Reference in New Issue
Block a user