Skip to content

Commit

Permalink
update inc/shortcuts_install.inc & inc/cpcheck.inc
Browse files Browse the repository at this point in the history
- add fpmconfigtest command shortcut
- update update_initphpfpm function
  • Loading branch information
centminmod committed Jun 2, 2017
1 parent 316151e commit 50dd958
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions inc/cpcheck.inc
Expand Up @@ -6,6 +6,9 @@ update_initphpfpm() {
systemctl daemon-reload
fi
fi
if [ ! -f /usr/bin/fpmconfigtest ]; then
echo "/etc/init.d/php-fpm configtest" >/usr/bin/fpmconfigtest ; chmod 700 /usr/bin/fpmconfigtest
fi
}

update_phpfpmconfg() {
Expand Down
2 changes: 2 additions & 0 deletions inc/shortcuts_install.inc
Expand Up @@ -67,6 +67,7 @@ if [[ "$CENTOS_SEVEN" != '7' ]]; then
echo "/etc/init.d/php-fpm start" >/usr/bin/fpmstart ; chmod 700 /usr/bin/fpmstart
echo "/etc/init.d/php-fpm restart" >/usr/bin/fpmrestart ; chmod 700 /usr/bin/fpmrestart
echo "/etc/init.d/php-fpm reload" >/usr/bin/fpmreload ; chmod 700 /usr/bin/fpmreload
echo "/etc/init.d/php-fpm configtest" >/usr/bin/fpmreload ; chmod 700 /usr/bin/fpmreload

if [ -f /etc/init.d/mysql ]; then

Expand Down Expand Up @@ -111,6 +112,7 @@ if [[ "$CENTOS_SEVEN" = '7' ]]; then
echo "/etc/init.d/php-fpm start" >/usr/bin/fpmstart ; chmod 700 /usr/bin/fpmstart
echo "/etc/init.d/php-fpm restart" >/usr/bin/fpmrestart ; chmod 700 /usr/bin/fpmrestart
echo "/etc/init.d/php-fpm reload" >/usr/bin/fpmreload ; chmod 700 /usr/bin/fpmreload
echo "/etc/init.d/php-fpm configtest" >/usr/bin/fpmconfigtest ; chmod 700 /usr/bin/fpmconfigtest

if [ -f /etc/init.d/mysql ]; then

Expand Down

0 comments on commit 50dd958

Please sign in to comment.