misc tool scripts
db access, artefact app download and deploy
This commit is contained in:
9
nextcloud_devenv/deploy_poll.sh
Executable file
9
nextcloud_devenv/deploy_poll.sh
Executable 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/
|
||||
|
||||
13
nextcloud_devenv/get_dbcontent.sh
Executable file
13
nextcloud_devenv/get_dbcontent.sh
Executable 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
2
notes/LONGTEXT.md
Normal file
@@ -0,0 +1,2 @@
|
||||
|
||||
problème avec LONGTEXT
|
||||
5
notes/get_artefacts.sh
Executable file
5
notes/get_artefacts.sh
Executable 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}
|
||||
Reference in New Issue
Block a user