Commit 3f24b1fc authored by Julian Gründner's avatar Julian Gründner

fix: add shebang to all sh files

parent 9c7a57f2
Pipeline #3429 passed with stage
in 15 seconds
#!/bin/bash
source /etc/dsqp/dsqp.config
zip ds_users.zip -rj $QP_DATA_DIR/ds_homes -i '*.pem' -x "$QP_DATA_DIR/ds_homes/*/.ssh/*key*.pem"
\ No newline at end of file
zip ds_users.zip -rj $QP_DATA_DIR/ds_homes -i '*.pem' -x "$QP_DATA_DIR/ds_homes/*/.ssh/*key*.pem"
#!/bin/bash
source /etc/dsqp/dsqp.config
docker-compose up -d
\ No newline at end of file
docker-compose up -d
#!/bin/bash
source /etc/dsqp/dsqp.config
docker-compose stop
\ No newline at end of file
docker-compose stop
#!/bin/bash
source /etc/dsqp/dsqp.config
VERSION=$1
QP_HOME_DIR=${QP_HOME_DIR:-"$HOME/ds_deployment"}
......@@ -15,5 +17,4 @@ fi
docker-compose down
docker-compose up -d
printf "\n - visit your server IP or domain + port 8787 in your browser to access the analysis client \n"
source ./dsqp.config
#!/bin/bash
source ./dsqp.config
QP_HOME_DIR=${QP_HOME_DIR:-"$HOME/ds_deployment"}
if [[ $(which docker) ]]; then
echo "docker already installled, version is: "
docker -v
......@@ -31,4 +33,3 @@ printf "\n the first time opal starts it takes a while to be ready as we are loa
printf "\n - visit $OPAL_SERVER_IP:8443 in your browser to access the poll server user interface \n"
printf "\n - visit https://$OPAL_SERVER_IP:443 in your browser to access the opal server user interface \n"
#!/bin/bash
printf "Installing Docker ... \n"
apt update
......
docker exec -it poll_server bash -c "cp /auth/ca_certs/* /usr/local/share/ca-certificates && update-ca-certificates"
\ No newline at end of file
#!/bin/bash
docker exec -it poll_server bash -c "cp /auth/ca_certs/* /usr/local/share/ca-certificates && update-ca-certificates"
......@@ -3,6 +3,7 @@
USER="miracum_import"
PW=$(pwgen -s 30 1)
docker exec --user=root datashield_opal bash -c "/miracum/init_miracum_import_user.sh $USER $PW"
echo "Created Import User and written user information to /etc/dsqp/miracum_projects.config"
......
#!/bin/bash
source /etc/dsqp/dsqp.config
source /etc/dsqp/dsqp.config
len=${#MIRACUM_PROJECTS[@]}
printf "Creating miracum projects - note: the miracum import user will get permission to administer the projects"
for (( i=0; i<$len; i++ ));
......@@ -11,7 +12,3 @@ for (( i=0; i<$len; i++ ));
PROJECT=${MIRACUM_PROJECTS[$i]}
docker exec datashield_opal bash -c "/miracum/init_miracum_project.sh $PROJECT"
done
#!/bin/bash
source /etc/dsqp/dsqp.config
for user in ${MIRACUM_USERS[@]}
......@@ -16,5 +17,3 @@ do
fi
done
......@@ -4,6 +4,7 @@ PROJECT=$1
TABLE=$2
USER=$3
printf "Givign user $USER permission to access table $TABLE of project $PROJECT \n\n "
docker exec datashield_opal bash -c "/miracum/add_user_to_table.sh $PROJECT $TABLE $USER"
docker exec datashield_opal bash -c "cd /auth && chmod +x import_certificate.sh && ./import_certificate.sh"
\ No newline at end of file
#!/bin/bash
docker exec datashield_opal bash -c "cd /auth && chmod +x import_certificate.sh && ./import_certificate.sh"
#!/bin/bash
COMMAND=$1
QUEUE_SERVER=${2:-""}
OPAL_SERVER=${3:-"-o datashield_opal:8443"}
......
#!/bin/bash
source /etc/dsqp/dsqp.config
printf "######################\nInitialising Opal and installing Datashield and RServer ...\n######################\n\n"
docker-compose up -d
......
#!/bin/bash
printf "######################\Stopping Opal, Datashield and RServer ...\n######################\n\n"
docker-compose stop
#!/bin/bash
source /etc/dsqp/dsqp.config
VERSION=$1
QP_HOME_DIR=${QP_HOME_DIR:-"$HOME/ds_deployment"}
if [ -n "$VERSION" ]; then
wget -N "https://gitlab.miracum.org/miracum-uc2-datashield/ds_develop/tree/$VERSION/deploy/opal_poll/docker-compose.yml"
else
......@@ -11,7 +14,6 @@ else
rm $QP_HOME_DIR/dsqp.config
fi
docker-compose down
docker-compose up -d
......
#!/bin/bash
source /etc/dsqp/dsqp.config
# uncomment the next two lines to configure your queue
TIMEOUT_QUEUE_AND_POLL=${TIMEOUT_QUEUE_AND_POLL:-"-t 10:10"}
ALLOWED_IPS=${ALLOWED_IPS:-""}
......
#!/bin/bash
docker-compose stop
#!/bin/bash
source /etc/dsqp/dsqp.config
VERSION=$1
QP_HOME_DIR=${QP_HOME_DIR:-"$HOME/ds_deployment"}
if [ -n "$VERSION" ]; then
wget -N docker-compose.yml "https://gitlab.miracum.org/miracum-uc2-datashield/ds_develop/tree/$VERSION/deploy/queue/docker-compose.yml"
fi
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment