From e1146528dcefd6c7f5e1681fe3ed43c784e1b7ef Mon Sep 17 00:00:00 2001 From: Dirk von Suchodoletz Date: Sat, 19 Apr 2008 21:04:28 +0000 Subject: Quickfix for failing stage3 start if desktop plugin was installed into stage1 but not stage2 (export) took place ... (it is to be discussed how to handle this generally) git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1751 95ad53e4-c205-0410-b2fa-d234c58c8868 --- os-plugins/plugins/desktop/XX_desktop.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'os-plugins/plugins') diff --git a/os-plugins/plugins/desktop/XX_desktop.sh b/os-plugins/plugins/desktop/XX_desktop.sh index 651c4044..2e062bf8 100644 --- a/os-plugins/plugins/desktop/XX_desktop.sh +++ b/os-plugins/plugins/desktop/XX_desktop.sh @@ -13,7 +13,13 @@ if [ -e /initramfs/plugin-conf/desktop.conf ]; then testmkd /mnt/var/lib/openslx/themes testmkd /mnt/var/lib/openslx/config - . /mnt/opt/openslx/plugin-repo/desktop/${desktop_manager}/desktop.sh + # problem which occures if exporting was forgotten (quick fix code) + if [ -e /mnt/opt/openslx/plugin-repo/desktop/${desktop_manager}/desktop.sh ] + then . /mnt/opt/openslx/plugin-repo/desktop/${desktop_manager}/desktop.sh + else + error fatal "This shouldn't fail - you might have forgotten to export \ +your system." + fi # TODO: move the following stuff into the gdm-specific desktop.sh # (and perhaps handle through a template?) -- cgit v1.2.3-55-g7522