mirror of
https://github.com/msmhq/msm.git
synced 2024-08-30 18:12:35 +00:00
28 lines
609 B
Bash
28 lines
609 B
Bash
echo "This script requires superuser access to install files to /etc."
|
|
echo "You will be prompted for your password by sudo."
|
|
|
|
# Clear existing sudo credentials
|
|
sudo -k
|
|
|
|
# Run install functions as sudo
|
|
# These functions are defined in another script
|
|
# after which this script is sourced
|
|
sudo sh <<SCRIPT
|
|
|
|
config_installation
|
|
update_system_packages
|
|
install_dependencies
|
|
add_minecraft_user
|
|
create_msm_directories
|
|
download_latest_files
|
|
patch_latest_files
|
|
install_config
|
|
install_cron
|
|
reload_cron
|
|
install_init
|
|
enable_init
|
|
update_msm
|
|
install_complete
|
|
|
|
SCRIPT
|