enable now

Signed-off-by: Christine Dodrill <me@christine.website>
This commit is contained in:
Cadey Ratio 2021-05-22 19:01:15 -04:00
parent 76303ee697
commit b0f04c10af
1 changed files with 3 additions and 3 deletions

View File

@ -29,14 +29,14 @@ fi
%post
if [ $1 -eq 1 ]; then
/usr/bin/systemctl daemon-reload
/usr/bin/systemctl start %{name}.service
/usr/bin/systemctl enable --now %{name}.service
fi
if [ $1 -eq 2 ]; then
/usr/bin/systemctl daemon-reload
/usr/bin/systemctl start %{name}.service
/usr/bin/systemctl enable --now %{name}.service
fi
%preun
%preu
#old package
#uninstall
if [ $1 -eq 0 ]; then