Skip to content

Commit 6814dfb

Browse files
authored
Update start.sh
1 parent 90f167b commit 6814dfb

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

start.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ if [[ "${LARAVEL_APP}" == "1" ]]; then
3030
fi
3131
fi
3232

33+
# SYMLINK CONFIGURATION FILES.
34+
ln -s /etc/php7/php.ini /etc/php7/conf.d/php.ini
35+
ln -s /etc/nginx/sites-available/default.conf /etc/nginx/sites-enabled/default.conf
36+
3337
# PRODUCTION LEVEL CONFIGURATION.
3438
if [[ "${PRODUCTION}" == "1" ]]; then
3539
sed -i -e "s/;log_level = notice/log_level = warning/g" /etc/php7/php-fpm.conf
@@ -53,9 +57,6 @@ if [ ! -z "${PHP_UPLOAD_MAX_FILESIZE}" ]; then
5357
sed -i "s/upload_max_filesize = 10M/upload_max_filesize = ${PHP_UPLOAD_MAX_FILESIZE}M/g" /etc/php7/conf.d/php.ini
5458
fi
5559

56-
# SYMLINK CONFIGURATION FILES.
57-
ln -s /etc/php7/php.ini /etc/php7/conf.d/php.ini
58-
ln -s /etc/nginx/sites-available/default.conf /etc/nginx/sites-enabled/default.conf
5960

6061
find /etc/php7/conf.d/ -name "*.ini" -exec sed -i -re 's/^(\s*)#(.*)/\1;\2/g' {} \;
6162

0 commit comments

Comments
 (0)