Jaymon / stockton

Quickly setup an email server to forward a personal domain to any email address
Other
4 stars 0 forks source link

install, reset, uninstall #23

Closed Jaymon closed 8 years ago

Jaymon commented 8 years ago

since individual runs of each command should be idempotent, install should always make a duplicate of the file if it isn't already there, so if dkim touches postfix's main.cf file, then it should create a main.cf.postfix.bak file that it can use on next run

on the individual classes (DKIM, Postfix, SMTP, etc):

install should install everything, including the needed packages

reset should get rid of configuration files that have been touched and folders that were created

uninstall should call reset and then also purge the packages

Jaymon commented 8 years ago

actually, reset maybe shouldn't exist, just install and uninstall, and if reset does exist it should just do:

self.uninstall()
self.install()

and be done with it