mirror of
https://github.com/msmhq/msm.git
synced 2024-08-30 18:12:35 +00:00
9d2b63f2b5
Update debian.sh script to eliminate "Cannot make directory '/var/run/screen': Permission denied" error on startup with Ubuntu 14.04 -- more information: https://bugs.launchpad.net/ubuntu/+source/screen/+bug/1380080
27 lines
811 B
Bash
Executable File
27 lines
811 B
Bash
Executable File
UPDATE_URL="https://raw.githubusercontent.com/msmhq/msm/master"
|
|
wget -q ${UPDATE_URL}/installers/common.sh -O /tmp/msmcommon.sh
|
|
source /tmp/msmcommon.sh && rm -f /tmp/msmcommon.sh
|
|
|
|
function update_system_packages() {
|
|
install_log "Updating sources"
|
|
sudo apt-get update || install_error "Couldn't update package list"
|
|
sudo apt-get upgrade || install_error "Couldn't upgrade packages"
|
|
}
|
|
|
|
function install_dependencies() {
|
|
install_log "Installing required packages"
|
|
sudo apt-get install screen rsync zip || install_error "Couldn't install dependencies"
|
|
}
|
|
|
|
function enable_init() {
|
|
install_log "Enabling automatic startup and shutdown"
|
|
hash insserv 2>/dev/null
|
|
if [[ $? == 0 ]]; then
|
|
sudo insserv msm
|
|
else
|
|
sudo update-rc.d msm defaults 99 10
|
|
fi
|
|
}
|
|
|
|
install_msm
|