Files

15 lines
546 B
Bash
Executable File

#!/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
app=polls
app_polls=$app/build/artifacts/polls.tar.gz
apps_dir=/var/www/html/custom_apps/
echo "Assuming $app is mounted under /root/$app of container"
podman exec -it nextcloud_local tar -xzf /root/$app_polls -C ${apps_dir}
podman exec -it nextcloud_local chown -R www-data:www-data ${apps_dir}