Skip to content

Commit

Permalink
Flag old etckeeper.conf as 'should not exist' in regenconf
Browse files Browse the repository at this point in the history
  • Loading branch information
alexAubin committed May 25, 2020
1 parent b8f8ea1 commit 5a3b382
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions data/hooks/conf_regen/01-yunohost
Expand Up @@ -63,6 +63,10 @@ SHELL=/bin/bash
0 7,19 * * * root : YunoHost Automatic Diagnosis; sleep \$((RANDOM\\%1200)); yunohost diagnosis run --email > /dev/null 2>/dev/null || echo "Running the automatic diagnosis failed miserably"
EOF

# legacy stuff to avoid yunohost reporting etckeeper as manually modified
# (this make sure that the hash is null / file is flagged as to-delete)
mkdir -p $pending_dir/etc/etckeeper
touch $pending_dir/etc/etckeeper/etckeeper.conf
}

do_post_regen() {
Expand Down

0 comments on commit 5a3b382

Please sign in to comment.