JasonYao / DEPRECATED-dotfiles

Dotfiles to run upon a clean install of a system
GNU General Public License v3.0
1 stars 1 forks source link

Refactoring into usecases #5

Closed JasonYao closed 8 years ago

JasonYao commented 8 years ago

2 main use cases split into 3 main areas:

Currently the dotfiles assumes any unix environment is a server, which is incorrect. CIMS is an example of a foreign unix environment that I can't use any server change commands to. Thus, comes the need to refactor.

Usage 1: dotfile setup

This one is split into osx and unix.

Usage 2: server setup

This one is just currently unix, though if .NET becomes a thing for me (so far it's just ewww), then I'll add that in later.

The how for refactoring:

Same command with differing number of flags. 1st flag: username 2nd flag: password 3rd flag: isServer

// iff 1 argument: isServer

if [ "$#" == 1 ];

// iff 2 arguments: setting up a new user with the passed in password (unix)

if [ "$#" == 2 ];

// iff 3 arguments: Set up a new user with the passed in password, and setup secure server defaults (unix)

if [ "$#" == 3 ];
JasonYao commented 8 years ago

Unix server is working as of 9e78572c55bcdf5c066b7222514cee8762a9f9b6

TODO:

JasonYao commented 8 years ago

Everything is complete for all 3 use cases as of 9178f8ed7ac35a0a0eb90b751f0bea4aa93c0cea

JasonYao commented 8 years ago

All bugs fixed for non-owned usercase as of e6c905402f46878e380bda24becdab68e1422462