diff --git a/nextcloud_devenv/runpodman.sh b/nextcloud_devenv/runpodman.sh index 0226870..26819d4 100755 --- a/nextcloud_devenv/runpodman.sh +++ b/nextcloud_devenv/runpodman.sh @@ -77,8 +77,16 @@ fi log_info 'Adjusting trusted_domains in ${bind_folder}/config/config.php' # assumes a php is installed locally, could be changed to use a podman image or container -sudo cp ${bind_folder}/config/config.php . -php patch_config.php "$listen_host:$host_free_port" | sudo tee ${bind_folder}/config/config.php +config_php=${bind_folder}/config/config.php +if [[ -f $config_php ]] +then + + sudo cp $config_php config.php + sudo chown $(id -u):$(id -g) config.php + php patch_config.php "$listen_host:$host_free_port" | sudo tee ${bind_folder}/config/config.php +else + log_info "no config/php, first install ?" +fi log_info "run podman with args ${podman_args[@]}"