Commit 530b813c authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

Solved problem due to obs checking post script

parent cb01986f
......@@ -95,16 +95,17 @@ cp $RPM_BUILD_DIR/slapos-node_%{unmangled_version}+%{slapversion}+0/template/sla
%post
echo """To generate slapos configuration run '#slapos node register'"""
if [ "$(id -u)" = "0" ]; then
if [ -f /bin/systemctl ]; then
systemctl enable slapos-node.service
systemctl start slapos-node.service
fi
%preun
if [ "$(id -u)" = "0" ]; then
if [ -f /bin/systemctl ]; then
systemctl stop slapos-node.service
fi
%postun
if [ "$(id -u)" = "0" ]; then
if [ -f /bin/systemctl ]; then
systemctl restart slapos-node.service
fi
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment