Plugin for Dotbot, that adds sudo directive, which allows you to run given direcives as root user.
- Simply add this repo as a submodule of your dotfiles repository:
git submodule add https://github.com/DrDynamic/dotbot-sudo.git
- Pass the path to the sudo.py file with corresponding flag to your Dotbot script:
-p /path/to/file/sudo.py
...
- sudo:
- other_directive: # like in the root of the config file
......
- sudo:
- clean: ['/root']
- aptget: [package_name_one, package_name_two, package_name_three]
...
..."~/.dotfiles/bin/dotbot" -d "~/.dotfiles" -c "~/.dotfiles/packages.yaml" -p "~/.dotfiles/plugins/dotbot-sudo/sudo.py"