Move php version to functions.sh
This commit is contained in:
parent
5c93d698b4
commit
6cee029d15
3 changed files with 3 additions and 3 deletions
|
@ -214,3 +214,5 @@ function git_clone {
|
||||||
mv $TMPPATH/$SUBDIR $TARGETPATH
|
mv $TMPPATH/$SUBDIR $TARGETPATH
|
||||||
rm -rf $TMPPATH
|
rm -rf $TMPPATH
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export PHP_VERSION="7.3" # Expected php version
|
||||||
|
|
|
@ -2,8 +2,6 @@
|
||||||
# HTTP: Turn on a web server serving static files
|
# HTTP: Turn on a web server serving static files
|
||||||
#################################################
|
#################################################
|
||||||
|
|
||||||
PHP_VERSION="7.3" # Expected php version
|
|
||||||
|
|
||||||
source setup/functions.sh # load our functions
|
source setup/functions.sh # load our functions
|
||||||
source /etc/mailinabox.conf # load global vars
|
source /etc/mailinabox.conf # load global vars
|
||||||
|
|
||||||
|
|
|
@ -198,4 +198,4 @@ chmod 664 $STORAGE_ROOT/mail/roundcube/roundcube.sqlite
|
||||||
|
|
||||||
# Enable PHP modules.
|
# Enable PHP modules.
|
||||||
phpenmod -v php mcrypt imap
|
phpenmod -v php mcrypt imap
|
||||||
restart_service php7.2-fpm
|
restart_service php$PHP_VERSION-fpm
|
||||||
|
|
Loading…
Reference in a new issue