Skip to content

Latest commit

 

History

History
41 lines (32 loc) · 985 Bytes

README.md

File metadata and controls

41 lines (32 loc) · 985 Bytes

Dotbot sudo Plugin

Plugin for Dotbot, that adds sudo directive, which allows you to run given direcives as root user.

Installation

  1. Simply add this repo as a submodule of your dotfiles repository:
git submodule add https://github.com/DrDynamic/dotbot-sudo.git
  1. Pass the path to the sudo.py file with corresponding flag to your Dotbot script:
  • -p /path/to/file/sudo.py

Supported task variants

...
- sudo: 
    - other_directive: # like in the root of the config file
   ...

Usage

Example config

...
- sudo:
    - clean: ['/root']
    - aptget: [package_name_one, package_name_two, package_name_three]
    ...
...

Execution

"~/.dotfiles/bin/dotbot" -d "~/.dotfiles" -c "~/.dotfiles/packages.yaml" -p "~/.dotfiles/plugins/dotbot-sudo/sudo.py"