forked from hypercasey/devopsctl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
devops-init-url.sh
21 lines (19 loc) · 1.18 KB
/
devops-init-url.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env bash
# Prepares the environment and updates the DevOps Run Command
# scripts in Cloud Storage.
# Prepare the environment for the DevOps server ocarun user.:
# curl -LSs https://objectstorage.us-ashburn-1.oraclecloud.com/p/7NZrvQr9qp4NClauXM_BuKgW_EZxiu1AcjFPSl8uHHiqM_zHCN51U6JkeBv3qEpu/n/hyperspirefndn/b/hyperstor/o/devops-prepare.sh | sh
# DevOps Run Command:
# curl -LSs https://objectstorage.us-ashburn-1.oraclecloud.com/p/7NZrvQr9qp4NClauXM_BuKgW_EZxiu1AcjFPSl8uHHiqM_zHCN51U6JkeBv3qEpu/n/hyperspirefndn/b/hyperstor/o/devops-init.sh | sh
if curl -T 'devops-init.sh' https://objectstorage.us-ashburn-1.oraclecloud.com/p/7NZrvQr9qp4NClauXM_BuKgW_EZxiu1AcjFPSl8uHHiqM_zHCN51U6JkeBv3qEpu/n/hyperspirefndn/b/hyperstor/o/devops-init.sh; then
echo "DevOps Run Command script successfully updated"
else
echo "DevOps Run Command script was not updated"
return 1
fi
if curl -T 'devops-prepare.sh' https://objectstorage.us-ashburn-1.oraclecloud.com/p/7NZrvQr9qp4NClauXM_BuKgW_EZxiu1AcjFPSl8uHHiqM_zHCN51U6JkeBv3qEpu/n/hyperspirefndn/b/hyperstor/o/devops-prepare.sh; then
echo "DevOps prepare script successfully updated"
else
echo "DevOps prepare script was not updated"
return 1
fi