Change-Id: I0879dd5c8e1fd2e3fb2a24ba319a9a39468114e4
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
# TODO: when uninstalling, it should be restored to original file
%posttrans
-cp -a /usr/lib/systemd/system/user\@.service /usr/lib/systemd/system/__user@.service
/usr/bin/sed -i -e 's/Type=\(.*\)/Type=forking/' /usr/lib/systemd/system/user\@.service
/usr/bin/sed -i -e 's/ExecStart=\(.*\)/ExecStart=\/usr\/bin\/systemd-user-helper start %i/' /usr/lib/systemd/system/user\@.service
/usr/bin/sed -i -e '/ExecStart=\(.*\)/ a ExecStop=\/usr\/bin\/systemd-user-helper stop %i' /usr/lib/systemd/system/user\@.service