diff --git a/meson.build b/meson.build index ca5ae84a0..bcd4cbf4d 100644 --- a/meson.build +++ b/meson.build @@ -578,7 +578,7 @@ endif subdir('docs') if get_option('systemd') and build_daemon - meson.add_install_script('meson_post_install.sh', systemdunitdir, localstatedir) + meson.add_install_script('meson_post_install.sh', systemdunitdir) endif makensis = find_program('makensis', required : false) diff --git a/meson_post_install.sh b/meson_post_install.sh index d757a81ae..9c38df6a8 100755 --- a/meson_post_install.sh +++ b/meson_post_install.sh @@ -5,10 +5,7 @@ if [ -z $MESON_INSTALL_PREFIX ]; then fi SYSTEMDUNITDIR=$1 -LOCALSTATEDIR=$2 -#if [ -z $DESTDIR ]; then - echo 'Updating systemd deps' - mkdir -p ${DESTDIR}${SYSTEMDUNITDIR}/system-update.target.wants - ln -sf ../fwupd-offline-update.service ${DESTDIR}${SYSTEMDUNITDIR}/system-update.target.wants/fwupd-offline-update.service -#fi +echo 'Updating systemd deps' +mkdir -p ${DESTDIR}${SYSTEMDUNITDIR}/system-update.target.wants +ln -sf ../fwupd-offline-update.service ${DESTDIR}${SYSTEMDUNITDIR}/system-update.target.wants/fwupd-offline-update.service