initial commit of upload-nextcloud.sh

This commit is contained in:
bilbo baggins 2024-07-09 14:49:07 +02:00
parent 589775abc3
commit 81224e87dd
2 changed files with 24 additions and 0 deletions

View File

@ -23,3 +23,6 @@ wmbus-logs.sh: ssh to haos and retrieve logs from wmbus docker container
mediathekviewweb_cli_script.sh mediathekviewweb_cli_script.sh
bash script that uses mediathekviewweb_cli (python) and jq to download an entire TV series bash script that uses mediathekviewweb_cli (python) and jq to download an entire TV series
(instructions/description in comments) (instructions/description in comments)
upload-nextcloud.sh kopiert eine Datei in den entsprechenden Ordner von Nextcloud "Dateien" auf einem yunohost
und stÃsst rescan in der "Dateien" App an

21
upload-nextcloud.sh Executable file
View File

@ -0,0 +1,21 @@
#!/usr/bin/env bash
host=yunohost
file=${1}
path=/home/yunohost.app/nextcloud/data/ala/files
scp "${file}" ${host}:/home/admi
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 nächstes auf ${host} Zeilen jeweils einzeln) ausführ:"
echo
echo
echo
echo sudo su - nextcloud
echo php8.2 --define apc.enable_cli=1 occ files:scan -- ala
echo
echo
echo
ssh ${host}