Add files and variable missing in last commit.
This commit is contained in:
parent
4ce97f5486
commit
5a2ae0d33c
3 changed files with 27 additions and 0 deletions
13
roles/lmn_vm/files/desktop-sync
Normal file
13
roles/lmn_vm/files/desktop-sync
Normal file
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/bash
|
||||
#
|
||||
# Synchronize desktop starters
|
||||
#
|
||||
set -eu
|
||||
|
||||
source /etc/lmn/vm.conf
|
||||
RSYNC_COMMAND=$(rsync -ai --delete --exclude=mimeinfo.cache "${DESKTOPSTARTERDIR}" \
|
||||
/usr/local/share/applications/ | sed '/ \.\//d')
|
||||
if [[ $? -eq 0 ]] && [[ -n "${RSYNC_COMMAND}" ]]; then
|
||||
echo "${RSYNC_COMMAND}"
|
||||
update-desktop-database /usr/local/share/applications
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue