enable now
Signed-off-by: Christine Dodrill <me@christine.website>
This commit is contained in:
parent
76303ee697
commit
b0f04c10af
|
@ -29,14 +29,14 @@ fi
|
||||||
%post
|
%post
|
||||||
if [ $1 -eq 1 ]; then
|
if [ $1 -eq 1 ]; then
|
||||||
/usr/bin/systemctl daemon-reload
|
/usr/bin/systemctl daemon-reload
|
||||||
/usr/bin/systemctl start %{name}.service
|
/usr/bin/systemctl enable --now %{name}.service
|
||||||
fi
|
fi
|
||||||
if [ $1 -eq 2 ]; then
|
if [ $1 -eq 2 ]; then
|
||||||
/usr/bin/systemctl daemon-reload
|
/usr/bin/systemctl daemon-reload
|
||||||
/usr/bin/systemctl start %{name}.service
|
/usr/bin/systemctl enable --now %{name}.service
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%preun
|
%preu
|
||||||
#old package
|
#old package
|
||||||
#uninstall
|
#uninstall
|
||||||
if [ $1 -eq 0 ]; then
|
if [ $1 -eq 0 ]; then
|
||||||
|
|
Loading…
Reference in New Issue