Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion scripts/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ if [[ ! -z "${TYPECHO_INSTALL}" && "${TYPECHO_INSTALL}" = "1" ]]; then
su -p www-data -s /usr/bin/env php /app/install.php
fi

if [[ ! -z "${TYPECHO_SECURE}" && "${TYPECHO_SECURE}" = "1" ]]; then
echo 'define('__TYPECHO_SECURE__',true);' >>/app/config.inc.php
fi

if [ "$1" = "apache" ]; then
apachectl -D FOREGROUND
elif [ "$1" = "fpm" ]; then
Expand All @@ -63,4 +67,4 @@ elif [ "$1" = "cli" ]; then
su -p www-data -s /bin/<shell> -c '/usr/bin/env php'
else
su -p www-data -s /bin/<shell> -c '/usr/bin/env php -S 0.0.0.0:80 -t /app'
fi
fi