remove context
This commit is contained in:
parent
37cda23222
commit
dad93b98be
1 changed files with 9 additions and 9 deletions
18
wscript
18
wscript
|
@ -6,46 +6,46 @@ DIR = os.getcwd()
|
||||||
def _get_json(path):
|
def _get_json(path):
|
||||||
return json.load(open(DIR + path))
|
return json.load(open(DIR + path))
|
||||||
|
|
||||||
def update_and_upgrade(ctx):
|
def update_and_upgrade():
|
||||||
os.system('apt-get update -y')
|
os.system('apt-get update -y')
|
||||||
os.system('apt-get upgrade -y')
|
os.system('apt-get upgrade -y')
|
||||||
os.system('apt-get dist-upgrade -y')
|
os.system('apt-get dist-upgrade -y')
|
||||||
|
|
||||||
|
|
||||||
def apt_install_core(ctx):
|
def apt_install_core():
|
||||||
for package in _get_json('/apt/apt-installs-core.json'):
|
for package in _get_json('/apt/apt-installs-core.json'):
|
||||||
os.system("apt-get install {} -y".format(package))
|
os.system("apt-get install {} -y".format(package))
|
||||||
|
|
||||||
|
|
||||||
def add_apt_keys(ctx):
|
def add_apt_keys():
|
||||||
for key in _get_json('/apt/apt-keys.json'):
|
for key in _get_json('/apt/apt-keys.json'):
|
||||||
os.system("wget -O - {} | apt-key add -".format(key))
|
os.system("wget -O - {} | apt-key add -".format(key))
|
||||||
|
|
||||||
|
|
||||||
def add_apt_sources(ctx):
|
def add_apt_sources():
|
||||||
os.system('apt/add-apt-sources.sh')
|
os.system('apt/add-apt-sources.sh')
|
||||||
|
|
||||||
|
|
||||||
def add_apt_repos(ctx):
|
def add_apt_repos():
|
||||||
for repo in _get_json('/apt/apt-repos.json'):
|
for repo in _get_json('/apt/apt-repos.json'):
|
||||||
os.system("add-apt-repository {} -y".format(repo))
|
os.system("add-apt-repository {} -y".format(repo))
|
||||||
|
|
||||||
|
|
||||||
def apt_install_extras(ctx):
|
def apt_install_extras():
|
||||||
for package in _get_json('/apt/apt-installs-extra.json'):
|
for package in _get_json('/apt/apt-installs-extra.json'):
|
||||||
os.system("apt-get install {} -y".format(package))
|
os.system("apt-get install {} -y".format(package))
|
||||||
|
|
||||||
|
|
||||||
def run_custom_installs(ctx):
|
def run_custom_installs():
|
||||||
os.system('apt/custom-installs.sh')
|
os.system('apt/custom-installs.sh')
|
||||||
|
|
||||||
|
|
||||||
def install_atom_packages(ctx):
|
def install_atom_packages():
|
||||||
packages = " ".join(_get_json('/atom/packages.json'))
|
packages = " ".join(_get_json('/atom/packages.json'))
|
||||||
os.system("apm install {}".format(packages))
|
os.system("apm install {}".format(packages))
|
||||||
|
|
||||||
|
|
||||||
def install_configs(ctx):
|
def install_configs():
|
||||||
shutil.copyfile(DIR + "/config/terminator.conf", "~/.config/terminator/config")
|
shutil.copyfile(DIR + "/config/terminator.conf", "~/.config/terminator/config")
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue