lxmf_provisioning: Added name to the announcement

This commit is contained in:
SebastianObi 2023-10-15 08:48:26 +02:00
parent a478a39a05
commit 6440e10122
2 changed files with 16 additions and 1 deletions

View File

@ -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

View File

@ -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