diff options
author | Mario <mario@mariovavti.com> | 2025-04-19 05:45:17 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2025-04-19 05:45:17 +0000 |
commit | ddaaac1103920b957ff71c72de75bc9c1610a183 (patch) | |
tree | c4842e3184f36825f79524f8200a0c17b89d7c37 | |
parent | 295266cb10efcc55bb4dd179706439f42ef41828 (diff) | |
parent | 80f3892ba0bfa83d40987d66a3518cecaa64f37d (diff) | |
download | volse-hubzilla-ddaaac1103920b957ff71c72de75bc9c1610a183.tar.gz volse-hubzilla-ddaaac1103920b957ff71c72de75bc9c1610a183.tar.bz2 volse-hubzilla-ddaaac1103920b957ff71c72de75bc9c1610a183.zip |
Merge branch 'debian_install_20250415' into 'dev'
debian install script
See merge request hubzilla/core!2196
-rw-r--r-- | .debianinstall/debian-setup.sh | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/.debianinstall/debian-setup.sh b/.debianinstall/debian-setup.sh index 758d13e68..2982b82eb 100644 --- a/.debianinstall/debian-setup.sh +++ b/.debianinstall/debian-setup.sh @@ -160,8 +160,8 @@ function install_composer { print_info "We check if Composer is already downloaded" if [ ! -f /usr/local/bin/composer ] then - EXPECTED_CHECKSUM="$(php -r 'copy("https://composer.github.io/installer.sig", "php://stdout");')" - php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" + EXPECTED_CHECKSUM="`wget -qO- https://composer.github.io/installer.sig`" + wget https://getcomposer.org/installer -O composer-setup.php ACTUAL_CHECKSUM="$(php -r "echo hash_file('sha384', 'composer-setup.php');")" if [ "$EXPECTED_CHECKSUM" != "$ACTUAL_CHECKSUM" ] then @@ -171,6 +171,7 @@ function install_composer { fi php composer-setup.php --quiet RESULT=$? + composer --version rm composer-setup.php # exit $RESULT # We install Composer globally @@ -181,7 +182,7 @@ function install_composer { fi cd $install_path export COMPOSER_ALLOW_SUPERUSER=1; - /usr/local/bin/composer install --no-dev + /usr/local/bin/composer install --no-dev --quiet /usr/local/bin/composer show export COMPOSER_ALLOW_SUPERUSER=0; } @@ -307,10 +308,19 @@ function install_run_selfhost { # https://carol.selfhost.de/update?username=123456&password=supersafe # # the prefered way - wget --output-document=$selfhostdir/$selfhostscript https://jonaspasche.de/selfhost-updater - echo "router" > $selfhostdir/device - echo "$selfhost_user" > $selfhostdir/user - echo "$selfhost_pass" > $selfhostdir/pass + if [ ! -f $selfhostdir/$selfhostscript ] + then + wget --output-document=$selfhostdir/$selfhostscript https://jonaspasche.de/selfhost-updater + if [ ! -s $selfhostdir/$selfhostscript ] + then + die "Failed to download selfHOST file for dynDNS" + fi + echo "router" > $selfhostdir/device + echo "$selfhost_user" > $selfhostdir/user + echo "$selfhost_pass" > $selfhostdir/pass + print_info "Wrote file to update dynamic IP. File: $selfhostdir/$selfhostscript" + fi + print_info "executing $selfhostdir/$selfhostscript update..." bash $selfhostdir/$selfhostscript update fi } |