Fixed oopsie's

This commit is contained in:
2020-07-30 15:22:26 +02:00
parent 8d10e8b853
commit 3b8c214dec
6 changed files with 16 additions and 10 deletions

View File

@@ -1,5 +1,5 @@
#!/bin/sh
red='\e[1;31m%s\e[0m\n'
printf "\n"
printf $red "Please run nextcloud-init.sh after the first nextcloud login"
printf $red "Please run bash ~/nextcloud-init.sh after the first nextcloud login"
printf "\n"

View File

@@ -4,4 +4,9 @@ sed -i -e 's/PHPver/'$phpver'/' -e 's/SITEname/'$sitename'/' -e 's/DOMAINname/'$
groupadd "$sitename"
useradd -g "$sitename" "$sitename"
#Nextcloud logging location
mkdir /var/log/nextcloud
chmod 774 -R /var/log/nextcloud
ln -s /var/www/"$domain"/html/data/nextcloud.log /var/log/nextcloud/"$sitename"
systemctl reload php"$phpver"-fpm

View File

@@ -7,8 +7,9 @@ sed -i -e "0,/^#ConfHere/s/\(^#Conf.*\)/#ConfHere1 /" -e '/#ConfHere1/ r /tmp/ng
if [ $sslenable = 0 ]; then
sed -i -e '/fastcgi_param HTTPS/c\# fastcgi_param HTTPS' /etc/nginx/sites-available/"$sitename"
fi
mkdir -p /var/www/"$domain"/html
systemctl reload nginx
#Getting Nextcloud
wget -t7 http://mirror.nxdi.nl/resources/nextcloud/latest.tar.bz2 -O /tmp/nextcloud.tar.bz2
@@ -47,3 +48,4 @@ wget -q -t7 "$repo"/raw/branch/"$branch"/CMS/nextcloud/nextcloud-init.sh -O ~/ne
sed -i -e 's/DOMAINname/'$domain'/' -e 's/SITEname/'$sitename'/' ~/nextcloud-init.sh
wget -q -t7 "$repo"/raw/branch/"$branch"/CMS/nextcloud/MotdNextCloud -O /etc/update-motd.d/51-nextnotice
chmod +x /etc/update-motd.d/51-nextnotice