Skip to content

fhill2/dotbot-sudo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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"

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%