initial commit of upload-nextcloud.sh
This commit is contained in:
		| @@ -23,3 +23,6 @@ wmbus-logs.sh:       ssh to haos and retrieve logs from wmbus docker container | ||||
| mediathekviewweb_cli_script.sh  | ||||
|                      bash script that uses mediathekviewweb_cli (python) and jq to download an entire TV series | ||||
|                      (instructions/description in comments) | ||||
|  | ||||
| upload-nextcloud.sh  kopiert eine Datei in den entsprechenden Ordner von Nextcloud "Dateien" auf einem yunohost  | ||||
|                      und st<73>sst rescan in der "Dateien" App an | ||||
|   | ||||
							
								
								
									
										21
									
								
								upload-nextcloud.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										21
									
								
								upload-nextcloud.sh
									
									
									
									
									
										Executable 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}  | ||||
		Reference in New Issue
	
	Block a user