summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authortioguda2022-05-03 15:53:24 -0300
committertioguda2022-05-03 15:54:41 -0300
commitda21b349d8274d06ae42e7c09f2e166bd98ac880 (patch)
tree1f9a39b50e601970f1099689cc0adf34926d4019
parent4160d6db4609a85a5a7c346d7e4e7dc4babc07d0 (diff)
downloadaur-da21b349d8274d06ae42e7c09f2e166bd98ac880.tar.gz
Enable warsaw.service on installation
-rw-r--r--warsaw-bin.install17
1 files changed, 5 insertions, 12 deletions
diff --git a/warsaw-bin.install b/warsaw-bin.install
index 156e60574ffa..f9b72a3cee2d 100644
--- a/warsaw-bin.install
+++ b/warsaw-bin.install
@@ -1,20 +1,13 @@
post_install() {
- if [ -e "/usr/share/hunspell/pt_BR.dic" ]
- then
- echo -e "\e[34;1m==>\e[39;1m Para usar o Warsaw, inicie seu serviço com: \e[0m"
- echo -e "\e[34;1m==>\e[39;1m $ sudo systemctl start warsaw \e[0m"
- echo -e "\e[34;1m==>\e[39;1m Para iniciar o Warsaw na inicialização do sistema, utilize o comando: \e[0m"
- echo -e "\e[34;1m==>\e[39;1m $ sudo systemctl enable warsaw \e[0m"
- echo -e "\e[34;1m==>\e[39;1m Conclua a configuração do seu banco no site abaixo: \e[0m"
+ if [ "$(locale | grep "LANG")" = "LANG=pt_BR.UTF-8" ]; then
+ echo -e "\e[34;1m==>\e[39;1m Reinicie o sistema e conclua a configuração do seu banco no site abaixo: \e[0m"
echo -e "\e[34;1m==>\e[39;1m https://diagnostico.gasantifraud.com \e[0m"
else
- echo -e "\e[34;1m==>\e[39;1m To use Warsaw, start its service using: \e[0m"
- echo -e "\e[34;1m==>\e[39;1m $ sudo systemctl start warsaw \e[0m"
- echo -e "\e[34;1m==>\e[39;1m To start Warsaw at system startup, use the command: \e[0m"
- echo -e "\e[34;1m==>\e[39;1m $ sudo systemctl enable warsaw \e[0m"
- echo -e "\e[34;1m==>\e[39;1m Complete your bank setup on the website below: \e[0m"
+ echo -e "\e[34;1m==>\e[39;1m Restart the system and complete your bank setup on the website below: \e[0m"
echo -e "\e[34;1m==>\e[39;1m https://diagnostico.gasantifraud.com \e[0m"
fi
+
+ systemctl enable --now warsaw.service
}
post_upgrade() {