Skip to content
Snippets Groups Projects
Select Git revision
  • master
  • puppet-7
  • install-fail2ban
  • ssh-forbid-password-authentication
  • multiple-wordpress-sites
  • needrestart
  • upgrade-connection
  • nextcloud-borg-backup
  • loki
  • cryptpad
  • fix-mail
  • mail
  • fix-enc
  • disable-collectd
  • resolv
  • onlyoffice-podman
  • gitlab-runner
  • registry
  • postgis
  • upgrade-monitoring-to-bullseye
20 results

run.sh

Blame
  • run.sh 455 B
    #!/usr/bin/env bash
    
    # /opt/libivrt-driver/run.sh
    
    currentDir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
    source ${currentDir}/base.sh # Get variables from base script.
    
    VM_IP=$(_get_vm_ip)
    
    ssh -i /root/.ssh/id_ed25519 -o StrictHostKeyChecking=no gitlab-runner@"$VM_IP" /bin/bash < "${1}"
    if [ $? -ne 0 ]; then
        # Exit using the variable, to make the build as failure in GitLab
        # CI.
        exit "$BUILD_FAILURE_EXIT_CODE"
    fi