[molecules] fix gforensic inner_chroot_script_after execution
This commit is contained in:
parent
93a90bc5d4
commit
cf455d01d1
@ -40,7 +40,7 @@ inner_chroot_script: /sabayon/scripts/remaster_generic_inner_chroot_script.sh
|
||||
|
||||
# Inner chroot script command, to be executed inside destination chroot after
|
||||
# packages installation and removal
|
||||
inner_chroot_script_after: /sabayon/scripts/remaster_gforensic_inner_chroot_script_after.sh gnome
|
||||
inner_chroot_script_after: /sabayon/scripts/remaster_generic_inner_chroot_script_after.sh gnome
|
||||
|
||||
# Outer chroot script command, to be executed outside destination chroot before
|
||||
# before entering it (and AFTER inner_chroot_script)
|
||||
|
@ -163,16 +163,13 @@ if [ -n "${SHIP_NVIDIA_LEGACY}" ]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
# fix clamav shit if available
|
||||
clamav_avail="$(equo match --installed app-antivirus/clamav -q)"
|
||||
if [ -n "${clamav_avail}" ]; then
|
||||
if [ ! -d "/var/log/clamav" ]; then
|
||||
mkdir -p /var/log/clamav
|
||||
chown clamav:clamav /var/log/clamav
|
||||
fi
|
||||
touch /var/log/clamav/freshclam.log
|
||||
chown clamav:clamav /var/log/clamav -R
|
||||
# fix clamav shit if available, mainly for Gforensic
|
||||
if [ ! -d "/var/log/clamav" ]; then
|
||||
mkdir -p /var/log/clamav
|
||||
chown clamav:clamav /var/log/clamav
|
||||
fi
|
||||
touch /var/log/clamav/freshclam.log
|
||||
chown clamav:clamav /var/log/clamav -R
|
||||
|
||||
# if Sabayon GNOME, drop qt-gui bins
|
||||
gnome_panel=$(qlist -ICve gnome-base/gnome-panel)
|
||||
|
@ -1,28 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
# call parent script first
|
||||
/sabayon/scripts/remaster_generic_inner_chroot_script_after.sh $@
|
||||
|
||||
touch /var/log/clamav/freshclam.log
|
||||
chown clamav:clamav /var/log/clamav -R
|
||||
|
||||
# do custom stuff
|
||||
#remove desktop icons
|
||||
rm /etc/skel/Desktop/*
|
||||
#remove no longer needed folders/files
|
||||
rm -r /etc/skel/.fluxbox
|
||||
rm -r /etc/skel/.e
|
||||
rm -r /etc/skel/.kde4
|
||||
rm -r /etc/skel/.mozilla
|
||||
rm -r /etc/skel/.emerald
|
||||
rm -r /etc/skel/.xchat2
|
||||
rm -r /etc/skel/.config/compiz
|
||||
rm -r /etc/skel/.config/lxpanel
|
||||
rm -r /etc/skel/.config/pcmanfm
|
||||
rm -r /etc/skel/.config/Thunar
|
||||
rm -r /etc/skel/.config/xfce4
|
||||
rm -r /etc/skel/.gconf/apps/compiz
|
||||
rm -r /etc/skel/.gconf/apps/gset-compiz
|
||||
rm /etc/skel/.config/menus/applications-kmenuedit.menu
|
||||
rm /etc/skel/.kderc
|
||||
|
Loading…
Reference in New Issue
Block a user