Enable php path for nextcloud
This commit is contained in:
parent
4932206fa4
commit
959fcbad54
|
@ -271,6 +271,8 @@ function remove_nextcloud {
|
|||
function_check remove_nodejs
|
||||
remove_nodejs pleroma-nextcloud
|
||||
|
||||
sed -i 's|env[PATH]|;env[PATH]|g' /etc/php5/fpm/pool.d/www.conf
|
||||
|
||||
read_config_param "NEXTCLOUD_DOMAIN_NAME"
|
||||
read_config_param "MY_USERNAME"
|
||||
echo "Removing $NEXTCLOUD_DOMAIN_NAME"
|
||||
|
@ -297,6 +299,7 @@ function remove_nextcloud {
|
|||
function_check remove_ddns_domain
|
||||
remove_ddns_domain $NEXTCLOUD_DOMAIN_NAME
|
||||
systemctl restart nginx
|
||||
systemctl restart php5-fpm
|
||||
}
|
||||
|
||||
function install_nextcloud_main {
|
||||
|
@ -321,6 +324,13 @@ function install_nextcloud_main {
|
|||
apt-get -yq install php-gettext php5-curl php5-gd php5-mysql git curl php-xml-parser
|
||||
apt-get -yq install php5-memcached php5-intl memcached php5-memcached
|
||||
|
||||
# Ensure PATH is available to php
|
||||
if [ ! -f /etc/php5/fpm/pool.d/www.conf ]; then
|
||||
echo $'No php www configuration file found'
|
||||
exit 628757
|
||||
fi
|
||||
sed -i 's|;env[PATH]|env[PATH]|g' /etc/php5/fpm/pool.d/www.conf
|
||||
|
||||
if [ ! -d /var/www/$NEXTCLOUD_DOMAIN_NAME ]; then
|
||||
mkdir /var/www/$NEXTCLOUD_DOMAIN_NAME
|
||||
fi
|
||||
|
@ -537,7 +547,7 @@ function install_nextcloud_main {
|
|||
./occ app:enable spreed
|
||||
./occ config:system:set defaultapp --value=gallery
|
||||
./occ config:system:set appstoreenabled --value=false
|
||||
./occ config:system:set trusted_domains 2 --value=$NEXTCLOUD_DOMAIN_NAME
|
||||
./occ config:system:set trusted_domains 1 --value=$NEXTCLOUD_DOMAIN_NAME
|
||||
chmod g+w /var/www/${NEXTCLOUD_DOMAIN_NAME}/htdocs/config/config.php
|
||||
chown -R www-data:www-data /var/www/${NEXTCLOUD_DOMAIN_NAME}/htdocs
|
||||
|
||||
|
|
Loading…
Reference in New Issue