dotfiles/INSTALL_ALL_THE_THINGS

30 lines
644 B
Plaintext
Raw Normal View History

2016-02-07 22:09:07 +00:00
#!/usr/bin/env python3
2016-02-05 18:05:20 +00:00
import os
2016-02-05 18:26:20 +00:00
import sys
2016-02-08 22:27:58 +00:00
from scripts.install_dotfiles import *
2016-02-05 18:26:20 +00:00
2016-02-08 22:27:58 +00:00
EXEC_ORDER = [
update,
apt_upgrade,
apt_install_core,
add_apt_keys,
add_apt_sources,
add_apt_repos,
update,
apt_install_extra,
run_custom_installs,
install_atom_packages,
export_atom_config,
install_configs
]
2016-02-05 18:05:20 +00:00
if __name__ == '__main__':
2016-02-05 18:26:20 +00:00
if os.geteuid() != 0:
2016-02-07 19:09:53 +00:00
print("Please run as root!")
2016-02-05 18:26:20 +00:00
elif input("Are you sure you want to install (allthethings)? [Y/N]: ").lower() == 'y':
2016-02-08 22:27:58 +00:00
for script in EXEC_ORDER:
script()
print("\n>>{} Executed.\n".format(script.__name__))