Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
immerda
Puppet Modules
webhosting
Commits
21a290b8
Commit
21a290b8
authored
Mar 23, 2020
by
mh
Browse files
we now also run as fpm
parent
d670f948
Changes
1
Hide whitespace changes
Inline
Side-by-side
files/update_scripts/update_smfs_webhostings.sh
View file @
21a290b8
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment