misc tool scripts

db access, artefact app download and deploy
This commit is contained in:
philippe lhardy
2025-07-31 11:10:59 +02:00
parent 89c3679be4
commit f9e38ea4a4
4 changed files with 29 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
#!/bin/bash
# assuming polls is bind mounted in container as /root/polls
# see runpodman.sh
# podman exec -it nextcloud_local rsync --chown www-data:www-data -av /root/polls/ /var/www/html/custom_apps/polls --exclude .git --exclude node_modules
podman exec -it nextcloud_local tar -xzf /root/polls/build/artifacts/appstore/polls.tar.gz -C /var/www/html/custom_apps/

View File

@@ -0,0 +1,13 @@
#!/bin/bash
source lib/metascript.sh
rel_bind_folder=bind_folder
bind_folder=$(pwd)/$rel_bind_folder
timestamp=$(get_timestamp_second)
database_file=/data/owncloud.db
database_dest=nextcloud.${timestamp}.db
$defer sudo cp ${bind_folder}${database_file} ${database_dest}
$defer sudo chown $(id -u):$(id -g) ${database_dest}

2
notes/LONGTEXT.md Normal file
View File

@@ -0,0 +1,2 @@
problème avec LONGTEXT

5
notes/get_artefacts.sh Executable file
View File

@@ -0,0 +1,5 @@
#!/bin/bash
source_url=https://github.com/nextcloud/polls/releases/download/v8.1.4/polls-8.1.4.tar.gz
#curl -o artefacts/polls-8.1.4.tar.gz ${source_url}
wget ${source_url}