Subversion Repositories ALCASAR

Rev

Rev 1778 | Rev 1781 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 1778 Rev 1780
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 1778 2016-01-19 22:40:43Z richard $ 
2
#  $Id: alcasar.sh 1780 2016-01-21 16:59:10Z c.valfort $ 
3
 
3
 
4
# alcasar.sh
4
# alcasar.sh
5
 
5
 
6
# ALCASAR Install script -  CopyLeft ALCASAR Team [Rexy + 3abtux + Steweb + Crox + ...] 
6
# ALCASAR Install script -  CopyLeft ALCASAR Team [Rexy + 3abtux + Steweb + Crox + ...] 
7
# Ce programme est un logiciel libre ; This software is free and open source
7
# Ce programme est un logiciel libre ; This software is free and open source
Line 1972... Line 1972...
1972
		$SED "/^gfxmenu/d" /boot/grub/menu.lst
1972
		$SED "/^gfxmenu/d" /boot/grub/menu.lst
1973
	fi
1973
	fi
1974
# Remove unused services and users
1974
# Remove unused services and users
1975
	for svc in sshd
1975
	for svc in sshd
1976
	do
1976
	do
1977
		/usr/bin/systemctl -q disable $svc.service
1977
		/usr/bin/systemctl -q enable $svc.service
1978
	done
1978
	done
1979
# Load and apply the previous conf file
1979
# Load and apply the previous conf file
1980
	if [ "$mode" = "update" ]
1980
	if [ "$mode" = "update" ]
1981
	then
1981
	then
1982
		$DIR_DEST_BIN/alcasar-archive.sh --now # exports current logs in /var/Save/archive
1982
		$DIR_DEST_BIN/alcasar-archive.sh --now # exports current logs in /var/Save/archive