Skip to content

Commit 3898267

Browse files
committed
Draft - upgrade custom.
1 parent e60df55 commit 3898267

File tree

1 file changed

+69
-0
lines changed

1 file changed

+69
-0
lines changed

_prog-ops/ops-custom.sh

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,3 +136,72 @@ _git-custom-repo() {
136136
return 0
137137
}
138138

139+
140+
141+
142+
143+
144+
145+
146+
147+
148+
149+
150+
# ATTENTION: Nearly identical to _custom . Significant differences:
151+
# _upgrade_researchEngine (instead of _setup_researchEngine)
152+
_upgrade_custom() {
153+
154+
# ATTENTION
155+
export GH_TOKEN="$GH_TOKEN_publicEquiv_auto"
156+
157+
158+
! _openChRoot && _messagePlain_bad 'fail: openChroot' && _messageFAIL
159+
160+
161+
_messageNormal '***** ***** ***** ***** ***** custom: upgrade: researchEngine'
162+
163+
! _chroot sudo -n -u user bash -c 'cd /home/user/core/infrastructure/ubiquitous_bash ; chmod 755 ./ubiquitous_bash.sh ; ./ubiquitous_bash.sh _gitBest pull ; chmod 755 ./ubiquitous_bash.sh ; ./ubiquitous_bash.sh _gitBest submodule update --recursive ; chmod 755 ./ubiquitous_bash.sh ; ./ubiquitous_bash.sh _upgrade_researchEngine' && _messageFAIL
164+
_chroot /bin/bash -c '[ -e "'"/home/user/core/data/searxng/settings.yml.rej"'" ]' && _messageFAIL
165+
166+
167+
_messageNormal '***** ***** ***** ***** ***** custom: (upgrade): iconArt'
168+
169+
! _chroot sudo -n -u user bash -c 'cd /home/user/core/infrastructure/iconArt ; ./ubiquitous_bash.sh _gitBest pull ; chmod 755 ./ubiquitous_bash.sh ; ./ubiquitous_bash.sh _fetch_iconArt' && _messageFAIL
170+
171+
172+
! _closeChRoot && _messagePlain_bad 'fail: closeChroot' && _messageFAIL
173+
174+
175+
176+
echo '###################################################################################################'
177+
echo '###################################################################################################'
178+
echo '###################################################################################################'
179+
180+
! _openChRoot && _messagePlain_bad 'fail: openChroot' && _messageFAIL
181+
182+
sudo -n cp -a -f /home/user/core/installations/pumpCompanion.exe "$globalVirtFS"/home/user/core/installations/
183+
_wget_githubRelease "mirage335-gizmos/pumpCompanion" "internal" "pumpCompanion.exe"
184+
[[ $(wc -c pumpCompanion.exe | cut -f1 -d\ | tr -dc '0-9') -lt 1000000 ]] && rm -f pumpCompanion.exe
185+
sudo -n mv -f pumpCompanion.exe "$globalVirtFS"/home/user/core/installations/
186+
187+
sudo -n cp -a -f /home/user/core/installations/extIface.exe "$globalVirtFS"/home/user/core/installations/
188+
_wget_githubRelease "mirage335-colossus/extendedInterface" "internal" "extIface.exe"
189+
[[ $(wc -c extIface.exe | cut -f1 -d\ | tr -dc '0-9') -lt 1000000 ]] && rm -f extIface.exe
190+
sudo -n mv -f extIface.exe "$globalVirtFS"/home/user/core/installations/
191+
192+
sudo -n cp -a -f /home/user/core/installations/ubDistBuild.exe "$globalVirtFS"/home/user/core/installations/
193+
_wget_githubRelease "soaringDistributions/ubDistBuild" "internal" "ubDistBuild.exe"
194+
[[ $(wc -c ubDistBuild.exe | cut -f1 -d\ | tr -dc '0-9') -lt 1000000 ]] && rm -f ubDistBuild.exe
195+
sudo -n mv -f ubDistBuild.exe "$globalVirtFS"/home/user/core/installations/
196+
197+
! _closeChRoot && _messagePlain_bad 'fail: closeChroot' && _messageFAIL
198+
199+
echo '###################################################################################################'
200+
echo '###################################################################################################'
201+
echo '###################################################################################################'
202+
203+
return 0
204+
}
205+
206+
207+

0 commit comments

Comments
 (0)