-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.sh
executable file
·61 lines (48 loc) · 1.13 KB
/
main.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/usr/bin/env bash
# -*- coding: UTF-8 -*-
#
# author : JV-conseil
# credits : JV-conseil
# copyright : Copyright (c) 2019-2023 JV-conseil
# All rights reserved
#====================================================
# shellcheck source=/dev/null
{
. "incl/all.sh"
. "postgresql/_utils.sh"
# more files
}
_ucld_::debug
cat "README.txt"
_ucld_::startup_check
_ucld_::ask_update_linux
if _ucld_::ask "Do you want to manage GitHub"; then
# shellcheck source=/dev/null
. "github/main.sh"
echo
fi
if _ucld_::is_postgresql_app_running; then
if _ucld_::ask "Do you want to manage PostreSQL"; then
# shellcheck source=/dev/null
. "postgresql/main.sh"
echo
fi
fi
if _ucld_::is_python_installed; then
if _ucld_::ask "Do you want to manage Django"; then
# shellcheck source=/dev/null
. "django/main.sh"
echo
fi
if _ucld_::ask "Do you want to run your Python app"; then
# shellcheck source=/dev/null
. "app/main.sh"
echo
fi
fi
if _ucld_::ask "Do you want to reset your settings"; then
_ucld_::reset_settings
_ucld_::show_settings
else
_ucld_::show_settings
fi