diff options
author | Yi Zhao <yi.zhao@windriver.com> | 2020-05-22 10:54:49 +0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2020-05-21 20:16:40 -0700 |
commit | 6f4d0dbfbc7d5ab8c5781379884f41d30cb6db25 (patch) | |
tree | 3f5eb568f7d003cc816d9b59d94424fb275c9bdf /meta-webserver/recipes-httpd/apache2/files/init | |
parent | 64469492b0c252457c9cf462c67373afeb33afc6 (diff) | |
download | meta-openembedded-6f4d0dbfbc7d5ab8c5781379884f41d30cb6db25.tar.gz |
apache2: create log/run directory via pkg_postinst
The commit e789c3837ca8d65abb4bac29dc2e5c595c8ce05b 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>
Diffstat (limited to 'meta-webserver/recipes-httpd/apache2/files/init')
-rw-r--r-- | meta-webserver/recipes-httpd/apache2/files/init | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/meta-webserver/recipes-httpd/apache2/files/init b/meta-webserver/recipes-httpd/apache2/files/init index 80a7ebfcb2..758d133b9e 100644 --- a/meta-webserver/recipes-httpd/apache2/files/init +++ b/meta-webserver/recipes-httpd/apache2/files/init | |||
@@ -97,11 +97,6 @@ do_start() | |||
97 | return 1 | 97 | return 1 |
98 | fi | 98 | fi |
99 | 99 | ||
100 | mkdir -p /var/log/apache2 | ||
101 | chmod -R 0755 /var/log/apache2 | ||
102 | mkdir -p /var/run/apache2 | ||
103 | chmod -R 0755 /var/run/apache2 | ||
104 | |||
105 | if apache_conftest ; then | 100 | if apache_conftest ; then |
106 | $APACHECTL start | 101 | $APACHECTL start |
107 | apache_wait_start $? | 102 | apache_wait_start $? |