File tree Expand file tree Collapse file tree 2 files changed +15
-15
lines changed Expand file tree Collapse file tree 2 files changed +15
-15
lines changed Original file line number Diff line number Diff line change 4343 if : ${{ needs.release.outputs.updated }}
4444 steps :
4545 - name : Wait for CDN refreshment
46- run : sleep 30s
46+ run : sleep 1m
4747
4848 test-ubuntu-install :
4949 needs : wait-for-cdn
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- SWIFTBOX_VERSION=" 0.9.1 "
3+ SWIFTBOX_VERSION=" 0.9.2 "
44INSTALL_DIR=" /usr/bin"
55
6+ if [ ` id -u` = 0 ]
7+ then
8+ WORKING_DIR=" /opt/swiftbox"
9+ ANOTHER_WD=" $HOME /.swiftbox"
10+ else
11+ WORKING_DIR=" $HOME /.swiftbox"
12+ ANOTHER_WD=" /opt/swiftbox"
13+ if hash sudo 2> /dev/null
14+ then
15+ SUDO_FLAG=" sudo"
16+ fi
17+ fi
18+
619if [ -f /etc/redhat-release ]
720then
821 REDHAT_RELEASE=` cat /etc/redhat-release`
@@ -275,19 +288,6 @@ ensure-env() {
275288 fi
276289}
277290
278- if [ ` id -u` = 0 ]
279- then
280- WORKING_DIR=" /opt/swiftbox"
281- ANOTHER_WD=" $HOME /.swiftbox"
282- else
283- WORKING_DIR=" $HOME /.swiftbox"
284- ANOTHER_WD=" /opt/swiftbox"
285- if hash sudo 2> /dev/null
286- then
287- SUDO_FLAG=" sudo"
288- fi
289- fi
290-
291291if [ $# = 0 ]
292292then
293293 echo " Please specify a command. "
You can’t perform that action at this time.
0 commit comments