зеркало из https://github.com/mozilla/dinobuildr.git
Testing experimental method of prompting for machine hostname for corsica builds.
This commit is contained in:
Родитель
71201233dd
Коммит
a83028e873
|
@ -11,6 +11,16 @@
|
|||
"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",
|
||||
"version": "",
|
||||
"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_file = "%s/%s" % (local_dir, manifest)
|
||||
default_manifest_hash = "61f6fc9b2bf9f2711c9eb4e2e9032dc825534fba83b02db0f1fcda09fb3fbdb5"
|
||||
ambient_manifest_hash = "c7d84f21277521d76e4125ff752be1682be01a081f585edf6dd82050ca0b17c8"
|
||||
ambient_manifest_hash = "57db3f9cbae7c5fd75a1c66056421f8a1e8f29454f61d7a84d63a971609c9332"
|
||||
manifest_hash = default_manifest_hash
|
||||
if manifest == "ambient_manifest.json":
|
||||
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
|
Загрузка…
Ссылка в новой задаче