Try adding the output to the files in a different way.
This commit is contained in:
12
setup.sh
12
setup.sh
@@ -140,10 +140,8 @@ if [[ -n "$create_general" && ! -f "$general_config" ]]; then
|
|||||||
; TEST DATA
|
; TEST DATA
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
print_general_contents # FORTEST
|
print_general_contents | sudo tee "$general_config"
|
||||||
print_general_contents > "$general_config"
|
|
||||||
ls -lh "$general_config"
|
ls -lh "$general_config"
|
||||||
cat "$general_config"
|
|
||||||
fi
|
fi
|
||||||
if [[ -n "$create_workstation" && ! -f "$workstation_config" ]]; then
|
if [[ -n "$create_workstation" && ! -f "$workstation_config" ]]; then
|
||||||
function print_workstation_contents {
|
function print_workstation_contents {
|
||||||
@@ -156,10 +154,8 @@ if [[ -n "$create_workstation" && ! -f "$workstation_config" ]]; then
|
|||||||
; TEST DATA
|
; TEST DATA
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
print_workstation_contents # FORTEST
|
print_workstation_contents | sudo tee "$workstation_config"
|
||||||
print_workstation_contents > "$workstation_config"
|
|
||||||
ls -lh "$workstation_config"
|
ls -lh "$workstation_config"
|
||||||
cat "$workstation_config"
|
|
||||||
fi
|
fi
|
||||||
if [[ -n "$create_server" && ! -f "$server_config" ]]; then
|
if [[ -n "$create_server" && ! -f "$server_config" ]]; then
|
||||||
function print_server_contents {
|
function print_server_contents {
|
||||||
@@ -169,10 +165,8 @@ if [[ -n "$create_server" && ! -f "$server_config" ]]; then
|
|||||||
; TEST DATA
|
; TEST DATA
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
print_server_contents # FORTEST
|
print_server_contents | sudo tee "$server_config"
|
||||||
print_server_contents > "$server_config"
|
|
||||||
ls -lh "$server_config"
|
ls -lh "$server_config"
|
||||||
cat "$server_config"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Provisioning Ansible..."
|
echo "Provisioning Ansible..."
|
||||||
|
|||||||
Reference in New Issue
Block a user