diff options
Diffstat (limited to 'x11/gdm2/pkg-install')
-rw-r--r-- | x11/gdm2/pkg-install | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/x11/gdm2/pkg-install b/x11/gdm2/pkg-install index e373a44e33ca..df128647f968 100644 --- a/x11/gdm2/pkg-install +++ b/x11/gdm2/pkg-install @@ -36,8 +36,10 @@ if [ "$2" = "POST-INSTALL" ]; then exit 1 fi fi - ${CHOWN} -R ${USER}:${GROUP} ${PKG_PREFIX}/share/gnome/gdm ${PKG_PREFIX}/etc/gdm - ${CHMOD} 0750 ${PKG_PREFIX}/share/gnome/gdm + if [ -n "${PKG_PREFIX}" ]; then + ${CHOWN} -R ${USER}:${GROUP} ${PKG_PREFIX}/share/gnome/gdm ${PKG_PREFIX}/etc/gdm + ${CHMOD} 0750 ${PKG_PREFIX}/share/gnome/gdm + fi exit 0 fi |