Testing experimental method of prompting for machine hostname for corsica builds.

This commit is contained in:
Lucius Bono 2018-06-27 13:30:32 -07:00
Родитель 71201233dd
Коммит a83028e873
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 41A7F0408F05C91B
3 изменённых файлов: 23 добавлений и 1 удалений

Просмотреть файл

@ -11,6 +11,16 @@
"type": "shell" "type": "shell"
}, },
{ {
"item": "Set Hostname",
"version": "",
"url": "repo/corsica/set-computername.sh",
"filename": "",
"dmg-installer": "",
"dmg-advanced": "",
"hash": "f8637dbebffca5af886953e69c912753ce84b913621fd52557ea72ddffbeb7f7",
"type": "shell"
},
{
"item": "Set Do Not Disturb", "item": "Set Do Not Disturb",
"version": "", "version": "",
"url": "repo/corsica/set-donotdisturb.sh", "url": "repo/corsica/set-donotdisturb.sh",

Просмотреть файл

@ -82,7 +82,7 @@ raw_url = "https://raw.githubusercontent.com/%s/%s/%s/" % (org, repo, branch)
manifest_url = "https://raw.githubusercontent.com/%s/%s/%s/%s" % (org, repo, branch, manifest) manifest_url = "https://raw.githubusercontent.com/%s/%s/%s/%s" % (org, repo, branch, manifest)
manifest_file = "%s/%s" % (local_dir, manifest) manifest_file = "%s/%s" % (local_dir, manifest)
default_manifest_hash = "61f6fc9b2bf9f2711c9eb4e2e9032dc825534fba83b02db0f1fcda09fb3fbdb5" default_manifest_hash = "61f6fc9b2bf9f2711c9eb4e2e9032dc825534fba83b02db0f1fcda09fb3fbdb5"
ambient_manifest_hash = "c7d84f21277521d76e4125ff752be1682be01a081f585edf6dd82050ca0b17c8" ambient_manifest_hash = "57db3f9cbae7c5fd75a1c66056421f8a1e8f29454f61d7a84d63a971609c9332"
manifest_hash = default_manifest_hash manifest_hash = default_manifest_hash
if manifest == "ambient_manifest.json": if manifest == "ambient_manifest.json":
manifest_hash = ambient_manifest_hash manifest_hash = ambient_manifest_hash

Просмотреть файл

@ -0,0 +1,12 @@
#!/bin/bash
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
read -p 'Enter desired hostname: ' hostname
echo "Setting LocalHostName and ComputerName to ${hostname}"
scutil --set LocalHostName $hostname
scutil --set ComputerName $hostname