trams242 / sshupdate

nicely update servers via ssh
GNU General Public License v2.0
1 stars 2 forks source link

Add modular setup to init.sh #25

Open Rydekull opened 10 years ago

Rydekull commented 10 years ago

So, instead of creating all functions in init.sh. Let init.sh scan the dir modules, that looks like follows: modules/ modules/debian.source modules/el6.source

Source these files depending on which target platform you want to build for.

Each file should contain functions that will f_create_client_package f_create_server_package

As such, we can do a modular approach to functions for different platforms that this script supports.

With this, change the ./init.sh call, to something like follows: ./init.sh build-client-package debian or ./init.sh build-client-package el6