mirror of
https://github.com/outbackdingo/labca.git
synced 2026-01-27 10:19:34 +00:00
Make update from gui more robust
This commit is contained in:
@@ -218,9 +218,9 @@ case $txt in
|
||||
cd $dn
|
||||
branch="$(git symbolic-ref --short HEAD 2>/dev/null)" || branch="(none)"
|
||||
if [ "$branch" == "master" ] || [ "$branch" == "main" ] || [ "$branch" == "(none)" ]; then
|
||||
/home/labca/labca/install &>>$LOGFILE
|
||||
nohup /home/labca/labca/install &>>$LOGFILE
|
||||
else
|
||||
/home/labca/labca/install -b $branch &>>$LOGFILE
|
||||
nohup /home/labca/labca/install -b $branch &>>$LOGFILE
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
|
||||
@@ -681,6 +681,15 @@
|
||||
},
|
||||
})
|
||||
.done(function(data) {
|
||||
if ( $(evt.target).attr("id") == "version-update") {
|
||||
const date = Date.now();
|
||||
let currentDate = null;
|
||||
do {
|
||||
currentDate = Date.now();
|
||||
} while (currentDate - date < 60000);
|
||||
|
||||
window.location.reload();
|
||||
}
|
||||
$('#modal-spinner').modal('hide');
|
||||
|
||||
td = $(evt.target).parent().parent().find("td:eq(1)");
|
||||
|
||||
Reference in New Issue
Block a user