forked from aws-samples/aws-batch-using-nice-dcv
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstartup_script.sh
More file actions
18 lines (17 loc) · 809 Bytes
/
Copy pathstartup_script.sh
File metadata and controls
18 lines (17 loc) · 809 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash
echo "starting startup script"
firewall-cmd --zone=public --permanent --add-port=8443/tcp
firewall-cmd --reload
#/usr/local/bin/send_dcvsessionready_notification.sh >/dev/null 2>&1 &
#_username="user001"
#"$(aws secretsmanager get-secret-value --secret-id \
# Run_DCV_in_Batch --query SecretString --output text | \
# jq -r 'keys[0]')"
echo "identified user name user001"
adduser "user001" -G wheel
echo "user001:test@123" | chpasswd
#&& echo "$(aws secretsmanager get-secret-value --secret-id \
# Run_DCV_in_Batch --query SecretString --output text | \
# sed 's/\"//g' | sed 's/{//' | sed 's/}//')" | chpasswd
/bin/dcv create-session --owner "user001" --user "user001" "user001session"
echo "completed creation of a dcv session"