diff options
| author | Yi Zhao <yi.zhao@windriver.com> | 2020-05-22 10:54:49 +0800 |
|---|---|---|
| committer | Armin Kuster <akuster808@gmail.com> | 2020-05-28 21:39:22 -0700 |
| commit | 1a42752afa43202a26b7185561007a081d9782bf (patch) | |
| tree | f5a3d53c51ac516843c1827502b2dbce83233d62 /meta-webserver/recipes-httpd/apache2/files/init | |
| parent | 222ff0f9dc44058cfd959881bc787da09b6d602a (diff) | |
| download | meta-openembedded-1a42752afa43202a26b7185561007a081d9782bf.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>
(cherry picked from commit 6f4d0dbfbc7d5ab8c5781379884f41d30cb6db25)
Signed-off-by: Armin Kuster <akuster808@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 $? |
