Commit 21a290b8 authored by mh's avatar mh
Browse files

we now also run as fpm

parent d670f948
......@@ -41,12 +41,13 @@ function update_smf {
smf=$1
basesmfdir=$basedir/$smf
starterfile="/var/www/mod_fcgid-starters/${smf}/${smf}-starter"
fpmfile="/etc/php-fpm.d/${smf}.conf"
wwwdir=$basesmfdir/www
if [ ! -f "${wwwdir}/SSI.php" ]; then
abort "SMF ${smf} does not really seem to be an smf!"
fi
if [ ! -f $starterfile ]; then
abort "SMF ${smf} does not have a starter file"
if [ ! -f $starterfile ] && [ ! -f $fpmfile ]; then
abort "SMF ${smf} does not have a fpm nor a starter file"
fi
ftpuser=$(stat -c%U $wwwdir)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment