Save common.sh, then source it and remove it

This commit is contained in:
Marcus Whybrow 2012-11-03 21:31:25 +00:00
parent 92fef004ef
commit 2f41ae5552
3 changed files with 7 additions and 4 deletions

View File

@ -153,7 +153,6 @@ function install_msm() {
# These functions are defined in another script # These functions are defined in another script
# after which this script is sourced # after which this script is sourced
sudo sh <<SCRIPT sudo sh <<SCRIPT
config_installation config_installation
update_system_packages update_system_packages
install_dependencies install_dependencies
@ -168,6 +167,6 @@ function install_msm() {
enable_init enable_init
update_msm update_msm
install_complete install_complete
SCRIPT
SCRIPT
} }

View File

@ -1,4 +1,6 @@
source <(wget -qO- https://raw.github.com/marcuswhybrow/minecraft-server-manager/master/installers/common.sh) wget -q https://raw.github.com/marcuswhybrow/minecraft-server-manager/master/installers/common.sh -O /tmp/msmcommon.sh
source /tmp/msmcommon.sh
rm -f /tmp/msmcommon.sh
function update_system_packages() { function update_system_packages() {
install_log "Updating sources" install_log "Updating sources"

View File

@ -1,4 +1,6 @@
source <(wget -qO- https://raw.github.com/marcuswhybrow/minecraft-server-manager/master/installers/common.sh) wget -q https://raw.github.com/marcuswhybrow/minecraft-server-manager/master/installers/common.sh -O /tmp/msmcommon.sh
source /tmp/msmcommon.sh
rm -f /tmp/msmcommon.sh
function update_system_packages() { function update_system_packages() {
install_log "Updating sources" install_log "Updating sources"