1
0
forked from brl/citadel

Move theme symlink creation into a module

This commit is contained in:
Bruce Leidl 2019-01-06 18:17:58 -05:00
parent eb684e9ee3
commit 06d5b6b0b3
3 changed files with 10 additions and 12 deletions

View File

@ -0,0 +1,9 @@
#
# /opt/share is a tree that is mounted into realm from citadel
#
mkdir -p /opt/share
ln -sf /opt/share/themes/Adapta /usr/share/themes/Adapta
ln -sf /opt/share/themes/Adapta-Eta /usr/share/themes/Adapta-Eta
ln -sf /opt/share/themes/Adapta-Nokto /usr/share/themes/Adapta-Nokto
ln -sf /opt/share/themes/Adapta-Nokto-Eta /usr/share/themes/Adapta-Nokto-Eta
ln -sf /opt/share/icons/Paper /usr/share/icons/Paper

View File

@ -1,12 +1 @@
PACKAGES="man manpages vim-nox iputils-ping tmux vifm gnome-terminal firefox nautilus eog evince unzip x264"
POST_INSTALL_MODULES="setup_theme_symlinks"
setup_theme_symlinks() {
mkdir -p /opt/share
ln -sf /opt/share/themes/Adapta /usr/share/themes/Adapta
ln -sf /opt/share/themes/Adapta-Eta /usr/share/themes/Adapta-Eta
ln -sf /opt/share/themes/Adapta-Nokto /usr/share/themes/Adapta-Nokto
ln -sf /opt/share/themes/Adapta-Nokto-Eta /usr/share/themes/Adapta-Nokto-Eta
ln -sf /opt/share/icons/Paper /usr/share/icons/Paper
}

View File

@ -6,7 +6,7 @@ BASE_PACKAGES="debootstrap iproute2 less xz-utils sudo dbus libpam-systemd opens
BASE_PRE_INSTALL_MODULES="utility-library configure-locale create-user set-hostname no-install-recommends write-apt-sources"
BASE_POST_INSTALL_MODULES="loginctl-enable-linger configure-systemd install-configure-host0 install-launch-script"
BASE_POST_INSTALL_MODULES="loginctl-enable-linger configure-systemd install-configure-host0 install-launch-script setup-theme-symlinks"
trap "exit 1" TERM
export TOP_PID=$$