Commit 28b60ef8 authored by w4t's avatar w4t

wtserver 0.38

parent e3ee9112
......@@ -3,8 +3,6 @@
# Install and configure Let's Encrypt
#---------------------------------------------------------------------
InstallLetsEncrypt() {
local START_TIME=$SECONDS
echo -n -e "$IDENTATION_LVL_1 Installing LetsEncrypt Certbot\n"
if [ $CFG_CERTBOT_VERSION == "Certbot" ]; then
......@@ -69,6 +67,4 @@ InstallLetsEncrypt() {
else
echo -n -e "$IDENTATION_LVL_1 SKIP INSTALL - Reason: ${red}Your Choice ${NC}\n"
fi
MeasureTimeDuration $START_TIME
}
......@@ -169,7 +169,7 @@ fi
EOF
chmod +x ./nextcloud_permissions.sh
#./nextcloud_permissions.sh
./nextcloud_permissions.sh
# Create initial configuration
instanceid=oc$(echo $CFG_HOSTNAME_DOMAIN | sha1sum | fold -w 10 | head -n 1)
......@@ -212,7 +212,7 @@ EOF
#sudo -u www-data "$STORAGE_ROOT"/owncloud/occ config:system:set mysql.utf8mb4 --type boolean --value="true"
#sudo -u www-data "$STORAGE_ROOT"/owncloud/occ maintenance:repair
sudo -u www-data php8.2 "$CLOUD_DIR"/occ maintenance:install \
hide_output sudo -u www-data php8.2 "$CLOUD_DIR"/occ maintenance:install \
--database "mysql" \
--database-name "$CFG_CLOUDDBNAME" \
--database-user "$CFG_CLOUDDBUSER" \
......@@ -261,7 +261,7 @@ EOF
sed -i "/);/i \$CONFIG['user_backends'] = array(\n array(\n 'class' => '\\\\OCA\\\\UserExternal\\\\IMAP',\n 'arguments' => array(\n '127.0.0.1', 143, null, null, false, false\n ),\n ),\n);" "$CONFIG_FILE"
fi
chown www-data.www-data $CLOUD_DIR/config.php
chown www-data:www-data $CLOUD_DIR/config.php >> $PROGRAMS_INSTALL_LOG_FILES 2>&1
# Enable/disable apps. Note that this must be done after the Nextcloud setup.
# The firstrunwizard gave Josh all sorts of problems, so disabling that.
......@@ -464,6 +464,7 @@ InstallNextcloudVer() {
InstallNextcloudApps
# Fix directory permissions
#chown www-data:www-data /path/to/nextcloud/config/
chmod 750 $CLOUD_DIR/{apps,config}
# Create a symlink to the config.php in STORAGE_ROOT (for upgrades we're restoring the symlink we previously
......
Markdown is supported
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