diff options
author | Dirk von Suchodoletz | 2008-04-19 23:04:28 +0200 |
---|---|---|
committer | Dirk von Suchodoletz | 2008-04-19 23:04:28 +0200 |
commit | e1146528dcefd6c7f5e1681fe3ed43c784e1b7ef (patch) | |
tree | ab0ac3489996bcd231cce860e066e31c2237f4ce /os-plugins/plugins/desktop/XX_desktop.sh | |
parent | Quick fix for the multiple installation problem of vmware plugin (diff) | |
download | core-e1146528dcefd6c7f5e1681fe3ed43c784e1b7ef.tar.gz core-e1146528dcefd6c7f5e1681fe3ed43c784e1b7ef.tar.xz core-e1146528dcefd6c7f5e1681fe3ed43c784e1b7ef.zip |
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
Diffstat (limited to 'os-plugins/plugins/desktop/XX_desktop.sh')
-rw-r--r-- | os-plugins/plugins/desktop/XX_desktop.sh | 8 |
1 files changed, 7 insertions, 1 deletions
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?) |