From b5c3eb9e01b09367935f558a57633b68a65a1a21 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 17 Dec 2020 15:08:14 +0100 Subject: [SSPS] Refactor static_files: Submodules with tree Add submodules (aka directories) to static_files, named according to what component they are for. Add function "install_files" to copy the contents of one of those modules to the root directory. This should make the resulting setup more obvious and require less manual copying of files everywhere. --- satellit_installer/satellit_installer | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) (limited to 'satellit_installer/satellit_installer') diff --git a/satellit_installer/satellit_installer b/satellit_installer/satellit_installer index c113680..d56039b 100755 --- a/satellit_installer/satellit_installer +++ b/satellit_installer/satellit_installer @@ -105,16 +105,13 @@ check_users # Meet interesting users with uid>=1000 and kill them. # user 65534/sync will be ignored. add_users_groups # Adding necessary users and groups -sudo_config # Adding sudo config for user taskmanager - install_ipxe "$IPXEDIR" compile_ipxe "$IPXEDIR" &>/tmp/ipxesuccess & add_mysql_dbs_users # mysql stuff; adding databases and users patch_mysql_config # adding utf8 entries to /etc/mysql/my.cnf -patch_tftpd-hpa_config -copy_tftpd-hpa_service +write_tftpd_config patch_lighttpd_config patch_php_config # This takes a lot of time, so any background stuff before this. @@ -125,8 +122,6 @@ patch_ldapsearch patch_java -write_apt_config - install_bwSuite_server "$DMSDDIR" install_dnbd3-server "$DNBD3DIR" @@ -144,16 +139,7 @@ install_ldadp "$LDADPDIR" || perror "Could not install ldadp" # NFS server configuration: config_nfs -# Samba configuration: User and share -# This is out-commented, as not needed recently -# setup_samba - -# Copying a script to configure a static IP -install_config_static_ip - -# Set a cronjob to cron.daily which cleans bwlp-* stuff from /tmp if older than 2 days -# and images from /srv/openslx/nfs/temp -install_tmpdelete +install_system_scripts # Sometimes a low device timeout has lead to problems. So we set a rule to increase the # block device timeout (sd*) from 30 to 180 using an udev rule. @@ -164,14 +150,10 @@ patch_bashrc # vim config patch_vim -setup_logging - # This part drops a script and anchors it's execution within root's .profile: drop_firstrun_script -install_slxlog install_timesync # cheap HTTP based timesync on boot -install_finalize # Script for cleaning some stuff after installation # Remove translation from menu etc., enable required modules patch_slxadmin_dir -- cgit v1.2.3-55-g7522