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
|
||||
EOF
|
||||
}
|
||||
print_general_contents # FORTEST
|
||||
print_general_contents > "$general_config"
|
||||
print_general_contents | sudo tee "$general_config"
|
||||
ls -lh "$general_config"
|
||||
cat "$general_config"
|
||||
fi
|
||||
if [[ -n "$create_workstation" && ! -f "$workstation_config" ]]; then
|
||||
function print_workstation_contents {
|
||||
@@ -156,10 +154,8 @@ if [[ -n "$create_workstation" && ! -f "$workstation_config" ]]; then
|
||||
; TEST DATA
|
||||
EOF
|
||||
}
|
||||
print_workstation_contents # FORTEST
|
||||
print_workstation_contents > "$workstation_config"
|
||||
print_workstation_contents | sudo tee "$workstation_config"
|
||||
ls -lh "$workstation_config"
|
||||
cat "$workstation_config"
|
||||
fi
|
||||
if [[ -n "$create_server" && ! -f "$server_config" ]]; then
|
||||
function print_server_contents {
|
||||
@@ -169,10 +165,8 @@ if [[ -n "$create_server" && ! -f "$server_config" ]]; then
|
||||
; TEST DATA
|
||||
EOF
|
||||
}
|
||||
print_server_contents # FORTEST
|
||||
print_server_contents > "$server_config"
|
||||
print_server_contents | sudo tee "$server_config"
|
||||
ls -lh "$server_config"
|
||||
cat "$server_config"
|
||||
fi
|
||||
|
||||
echo "Provisioning Ansible..."
|
||||
|
||||
Reference in New Issue
Block a user