mirror of
https://github.com/markqvist/LXMF-Tools.git
synced 2025-06-06 21:48:59 -04:00
lxmf_provisioning: Added name to the announcement
This commit is contained in:
parent
a478a39a05
commit
6440e10122
2 changed files with 16 additions and 1 deletions
15
build_git.sh
15
build_git.sh
|
@ -19,11 +19,19 @@ COMMENT_INIT="Initial commit"
|
||||||
|
|
||||||
|
|
||||||
_prompt() {
|
_prompt() {
|
||||||
|
echo -e "Origin: ${ORIGIN}"
|
||||||
|
echo -e "Branch: ${BRANCH}"
|
||||||
|
echo -e "Diff:"
|
||||||
|
git diff --numstat
|
||||||
|
echo -e ""
|
||||||
echo -e ""
|
echo -e ""
|
||||||
echo -e "Select an option:"
|
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
|
select opt in "${options[@]}"; do
|
||||||
case $opt in
|
case $opt in
|
||||||
|
"Diff"*)
|
||||||
|
_diff
|
||||||
|
break;;
|
||||||
"Commit/Push"*)
|
"Commit/Push"*)
|
||||||
_commit
|
_commit
|
||||||
break;;
|
break;;
|
||||||
|
@ -62,6 +70,11 @@ _define_files() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
_diff() {
|
||||||
|
git diff
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
_commit() {
|
_commit() {
|
||||||
_define_files
|
_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])
|
announce_data[key][val[0]] = val_to_val(val[1])
|
||||||
else:
|
else:
|
||||||
announce_data[key] = val
|
announce_data[key] = val
|
||||||
|
announce_data["c"] = CONFIG["lxmf"]["display_name"].encode("utf-8")
|
||||||
|
|
||||||
LXMF_CONNECTION = lxmf_connection(
|
LXMF_CONNECTION = lxmf_connection(
|
||||||
storage_path=path,
|
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.
|
# This also has the advantage that all changed settings can be kept when updating the program.
|
||||||
|
|
||||||
[lxmf]
|
[lxmf]
|
||||||
|
display_name = LXMF Provisioning Server
|
||||||
announce_periodic = Yes
|
announce_periodic = Yes
|
||||||
announce_periodic_interval = 15 #Minutes
|
announce_periodic_interval = 15 #Minutes
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue