Skip to content

Commit e6c0c2e

Browse files
Desktops: recreating Synaptic search index (#95)
Co-authored-by: Joey Turner <Tearran@users.noreply.github.com>
1 parent 63a714f commit e6c0c2e

1 file changed

Lines changed: 14 additions & 13 deletions

File tree

lib/armbian-configng/config.ng.system.sh

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,14 @@
1212
#
1313
# @description Use TUI / GUI for apt install if exists
1414
#
15-
function apt_install_wrapper
16-
{
15+
function apt_install_wrapper(){
1716
if [ -t 0 ] ; then
1817
debconf-apt-progress -- $@
1918
else
2019
# Terminal not defined - proceed without TUI
2120
$@
2221
fi
23-
22+
}
2423

2524
module_options+=(
2625
["install_de,author"]="Igor Pecovnik"
@@ -33,7 +32,7 @@ module_options+=(
3332
#
3433
# Install desktop
3534
#
36-
function install_de (){
35+
function install_de(){
3736

3837
# get user who executed this script
3938
if [ $SUDO_USER ]; then local user=$SUDO_USER; else local user=`whoami`; fi
@@ -51,6 +50,9 @@ function install_de (){
5150
usermod -aG ${additionalgroup} ${user} 2>/dev/null
5251
done
5352

53+
# Recreating Synaptic search index
54+
update-apt-xapian-index -u
55+
5456
# set up profile sync daemon on desktop systems
5557
which psd >/dev/null 2>&1
5658
if [[ $? -eq 0 && -z $(grep overlay-helper /etc/sudoers) ]]; then
@@ -92,7 +94,7 @@ module_options+=(
9294
#
9395
# check dpkg status of $1 -- currently only 'not installed at all' case caught
9496
#
95-
function update_skel (){
97+
function update_skel(){
9698

9799
getent passwd |
98100
while IFS=: read -r username x uid gid gecos home shell
@@ -118,7 +120,7 @@ module_options+=(
118120
#
119121
# check dpkg status of $1 -- currently only 'not installed at all' case caught
120122
#
121-
function qr_code (){
123+
function qr_code(){
122124

123125
clear
124126
if [[ "$1" == "generate" ]]; then
@@ -145,7 +147,7 @@ module_options+=(
145147
#
146148
# @description Set Armbian to stable release
147149
#
148-
function set_stable () {
150+
function set_stable(){
149151

150152
if ! grep -q 'apt.armbian.com' /etc/apt/sources.list.d/armbian.list; then
151153
sed -i "s/http:\/\/[^ ]*/http:\/\/apt.armbian.com/" /etc/apt/sources.list.d/armbian.list
@@ -164,7 +166,7 @@ module_options+=(
164166
#
165167
# @description Set Armbian to rolling release
166168
#
167-
function set_rolling () {
169+
function set_rolling(){
168170

169171
if ! grep -q 'beta.armbian.com' /etc/apt/sources.list.d/armbian.list; then
170172
sed -i "s/http:\/\/[^ ]*/http:\/\/beta.armbian.com/" /etc/apt/sources.list.d/armbian.list
@@ -183,7 +185,7 @@ module_options+=(
183185
#
184186
# @description set/unset Armbian root filesystem to read only
185187
#
186-
function manage_overlayfs () {
188+
function manage_overlayfs(){
187189

188190
if [[ "$1" == "enable" ]]; then
189191
debconf-apt-progress -- apt-get -o Dpkg::Options::="--force-confold" -y install overlayroot cryptsetup cryptsetup-bin
@@ -224,6 +226,7 @@ else
224226
}' "${SDCARD}/etc/ssh/sshd_config"
225227
sudo service ssh restart
226228
fi
229+
227230
}
228231

229232
module_options+=(
@@ -237,8 +240,7 @@ module_options+=(
237240
#
238241
# @description Toggle message of the day items
239242
#
240-
function adjust_motd
241-
{
243+
function adjust_motd(){
242244

243245
# show motd description
244246
motd_desc(){
@@ -265,8 +267,7 @@ function adjust_motd
265267
}
266268

267269
# read status
268-
function motd_status
269-
{
270+
function motd_status(){
270271
source /etc/default/armbian-motd
271272
if [[ $MOTD_DISABLE == *$1* ]] ; then
272273
echo "OFF"

0 commit comments

Comments
 (0)