mirror of
https://github.com/markqvist/LXMF-Tools.git
synced 2024-10-01 03:15:38 -04:00
lxmf_provisioning: Added name to the announcement
This commit is contained in:
parent
a478a39a05
commit
6440e10122
15
build_git.sh
15
build_git.sh
@ -19,11 +19,19 @@ COMMENT_INIT="Initial commit"
|
||||
|
||||
|
||||
_prompt() {
|
||||
echo -e "Origin: ${ORIGIN}"
|
||||
echo -e "Branch: ${BRANCH}"
|
||||
echo -e "Diff:"
|
||||
git diff --numstat
|
||||
echo -e ""
|
||||
echo -e ""
|
||||
echo -e "Select an option:"
|
||||
options=("Commit/Push" "Clear History" "Init" "Init (Pull only)" "Init (Push only)" "Exit")
|
||||
options=("Diff" "Commit/Push" "Clear History" "Init" "Init (Pull only)" "Init (Push only)" "Exit")
|
||||
select opt in "${options[@]}"; do
|
||||
case $opt in
|
||||
"Diff"*)
|
||||
_diff
|
||||
break;;
|
||||
"Commit/Push"*)
|
||||
_commit
|
||||
break;;
|
||||
@ -62,6 +70,11 @@ _define_files() {
|
||||
}
|
||||
|
||||
|
||||
_diff() {
|
||||
git diff
|
||||
}
|
||||
|
||||
|
||||
_commit() {
|
||||
_define_files
|
||||
|
||||
|
@ -1406,6 +1406,7 @@ def setup(path=None, path_rns=None, path_log=None, loglevel=None, service=False)
|
||||
announce_data[key][val[0]] = val_to_val(val[1])
|
||||
else:
|
||||
announce_data[key] = val
|
||||
announce_data["c"] = CONFIG["lxmf"]["display_name"].encode("utf-8")
|
||||
|
||||
LXMF_CONNECTION = lxmf_connection(
|
||||
storage_path=path,
|
||||
@ -1501,6 +1502,7 @@ DEFAULT_CONFIG_OVERRIDE = '''# This is the user configuration file to override t
|
||||
# This also has the advantage that all changed settings can be kept when updating the program.
|
||||
|
||||
[lxmf]
|
||||
display_name = LXMF Provisioning Server
|
||||
announce_periodic = Yes
|
||||
announce_periodic_interval = 15 #Minutes
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user