upload-nextcloud: initial commit

This commit is contained in:
bilbo baggins 2024-07-19 14:35:29 +02:00
parent c935e3e2a6
commit 2886c07750

View File

@ -2,20 +2,14 @@
host=yunohost
file=${1}
path=/home/yunohost.app/nextcloud/data/ala/files
scp "${file}" ${host}:/home/admi
scp "${file}" ${host}:
ssh ${host} sudo mv \"${file}\" \"${path}\"
ssh ${host} sudo chown \"nextcloud:nextcloud\" \"${path}/${file}\"
ssh ${host} sudo ls -lh \"${path}/${file}\"
echo
echo
echo
echo "Bitte als naechstes auf ${host} folgende Zeilen (jeweils einzeln) ausfuehren:"
#echo sudo su - nextcloud
#echo php8.2 --define apc.enable_cli=1 occ files:scan -- ala
ssh ${host} sudo "su - nextcloud -c 'php8.2 --define apc.enable_cli=1 occ files:scan -- ala'"
echo
echo
echo
echo sudo su - nextcloud
echo php8.2 --define apc.enable_cli=1 occ files:scan -- ala
echo
echo
echo
ssh ${host}