From 73fda71f993e0706cc1c02165ad0425ac8b08746 Mon Sep 17 00:00:00 2001 From: Eduard Veit Date: Thu, 9 Feb 2023 13:32:48 +0100 Subject: [PATCH] fix(Nextcloud): remove immediate `source completion` command For some reason you need a new ssh session to get this to work. --- nextcloud-installer.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/nextcloud-installer.sh b/nextcloud-installer.sh index c9c2589..c39aecc 100644 --- a/nextcloud-installer.sh +++ b/nextcloud-installer.sh @@ -252,16 +252,14 @@ end_of_content function install_ncc { touch ~/bin/ncc - cat << end_of_content > ~/bin/ncc + cat << 'end_of_content' > ~/bin/ncc #!/usr/bin/env bash -exec php /var/www/virtual/\$USER/html/occ "\$@" +exec php /var/www/virtual/$USER/html/occ "$@" end_of_content chmod u+x ~/bin/ncc chmod u+x ~/html/occ ncc _completion --generate-hook --program=ncc > ~/_nextcloud_completion echo "source \$HOME/_nextcloud_completion" >> ~/.bash_profile - # shellcheck source=/dev/null - source ~/.bash_profile } function install_nextcloud_updater