misc tool scripts
db access, artefact app download and deploy
This commit is contained in:
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}
|
||||
Reference in New Issue
Block a user