Skip to content

Commit

Permalink
another setup script bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kwindrem committed Nov 17, 2021
1 parent 3611c6a commit 93fffb0
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 14 deletions.
Binary file modified .DS_Store
Binary file not shown.
27 changes: 14 additions & 13 deletions setup
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,6 @@ if [ $scriptAction == 'NONE' ] ; then
# NOTE: if new settings are added in the future, change test for that one
# to avoid creating that new parameter !!!!

dbus-send --system --print-reply=literal --dest=com.victronenergy.settings /Settings/PackageVersion/CheckingPackage\
com.victronenergy.BusItem.GetValue &> /dev/null
if (( $? != 0 )); then
logMessage "creating SetupHelper Settings"
dbus -y com.victronenergy.settings /Settings AddSettings\
'%[ {"path": "/PackageVersion/GitHubAutoUpdate", "default":0},\
{"path": "/PackageVersion/CheckingPackage", "default":""},]' > /dev/null
# relocate options and current values
moveSetting "$setupOptionsDir/autoGitHubUpdate" "/Settings/GuiMods/GitHubAutoUpdate" "/PackageVersion/GitHubAutoUpdate"
rm -f "$setupOptionsDir/autoGitHubUpdate"
moveSetting "" "/Settings/GuiMods/CheckingPackage" "/PackageVersion/CheckingPackage"
fi

# display initial message
echo
echo "This package provides support functions and utilities for Venus modification packages"
Expand Down Expand Up @@ -164,6 +151,20 @@ if [ $scriptAction == 'INSTALL' ] ; then
cp "$scriptDir/defaultPackageList" "$packageListFile"
fi

dbus-send --system --print-reply=literal --dest=com.victronenergy.settings /Settings/PackageVersion/CheckingPackage\
com.victronenergy.BusItem.GetValue &> /dev/null
if (( $? != 0 )); then
logMessage "creating SetupHelper Settings"
dbus -y com.victronenergy.settings /Settings AddSettings\
'%[ {"path": "/PackageVersion/GitHubAutoUpdate", "default":0},\
{"path": "/PackageVersion/CheckingPackage", "default":""},]' > /dev/null
# relocate options and current values
moveSetting "$setupOptionsDir/autoGitHubUpdate" "/Settings/GuiMods/GitHubAutoUpdate" "/PackageVersion/GitHubAutoUpdate"
rm -f "$setupOptionsDir/autoGitHubUpdate"
moveSetting "" "/Settings/GuiMods/CheckingPackage" "/PackageVersion/CheckingPackage"
fi


updateActiveFile "$qmlDir/PageSettings.qml"
updateActiveFile "$qmlDir/PageSettingsPackageControl.qml"
updateActiveFile "$qmlDir/PageSettingsPackageVersions.qml"
Expand Down
Binary file modified venus-data.tgz
Binary file not shown.
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v3.6
v3.7

0 comments on commit 93fffb0

Please sign in to comment.