Skip to content

Commit

Permalink
Quote some variables
Browse files Browse the repository at this point in the history
  • Loading branch information
strugee committed Nov 8, 2024
1 parent b7a39b1 commit dbe4f60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/seagl-setup-app
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ elif [ "$arg" == firefox ]; then
sudo sed -i "s;__REMOTE_SPEAKER_TALK_URLS_PLACEHOLDER__;$(get_config_value .remoteSpeakerJitsiURLs);" /etc/firefox/policies/policies.json
start_and_link_app org.mozilla.firefox
elif [ "$arg" == rclone ]; then
rclone config create seagl_s3 s3 provider=AWS access_key_id=$(get_config_value .awsCreds.accessKey) secret_access_key=$(get_config_value .awsCreds.secretAccessKey) env_auth=false region=us-west-2 endpoint= location_constraint=us-west-2 acl=private
rclone config create seagl_s3 s3 provider=AWS access_key_id="$(get_config_value .awsCreds.accessKey)" secret_access_key="$(get_config_value .awsCreds.secretAccessKey)" env_auth=false region=us-west-2 endpoint= location_constraint=us-west-2 acl=private
# Do the exact same thing but with sudo, in case someone runs rclone from a root shell by mistake
sudo rclone config create seagl_s3 s3 provider=AWS access_key_id=$(get_config_value .awsCreds.accessKey) secret_access_key=$(get_config_value .awsCreds.secretAccessKey) env_auth=false region=us-west-2 endpoint= location_constraint=us-west-2 acl=private
sudo rclone config create seagl_s3 s3 provider=AWS access_key_id="$(get_config_value .awsCreds.accessKey)" secret_access_key="$(get_config_value .awsCreds.secretAccessKey)" env_auth=false region=us-west-2 endpoint= location_constraint=us-west-2 acl=private
else
echo fatal: application to be set up must be one of obs, nextcloud, firefox, or rclone, but received $arg
fi

0 comments on commit dbe4f60

Please sign in to comment.