Fix patching and nc download

This commit is contained in:
Luis Guzmán 2020-04-11 10:58:37 -05:00
parent ef10d3c18f
commit d911bcaad1
1 changed files with 3 additions and 5 deletions

View File

@ -316,8 +316,8 @@ echo "
Latest version to be installed: $STABLEVERSION
"
curl -s $NC_REPO/$STABLEVERSION.zip > /tmp/$STABLEVERSION.zip
unzip -q $STABLEVERSION.zip
sudo mv nextcloud $NC_PATH
unzip -q /tmp/$STABLEVERSION.zip
mv nextcloud $NC_PATH
chown -R www-data:www-data $NC_PATH
chmod -R 755 $NC_PATH
@ -325,9 +325,7 @@ chmod -R 755 $NC_PATH
if $(dpkg --compare-versions "$NCVERSION" "le" "18.0.3"); then
echo "
-> Patching #425 (scssphp/src/Compiler.php)..."
#sudo -u www-data cp -s https://nc.switnet.net/s/J89EmtEKcgj9AwP/download \
#> $NC_PATH/3rdparty/leafo/scssphp/src/patch_425_3thy.patch
sudo -u www-data patch -d "$NC_PATH/3rdparty/leafo/scssphp/src/" -p0 < files/patch_425_3thy.patch
sudo -u www-data patch -d "$NC_PATH/3rdparty/leafo/scssphp/src/" -p0 < files/patch_425_3dty.patch
fi
echo "