local_ip
This commit is contained in:
parent
e400992362
commit
4710550d8d
@ -23,11 +23,13 @@ function update_script() {
|
|||||||
header_info
|
header_info
|
||||||
check_container_storage
|
check_container_storage
|
||||||
check_container_resources
|
check_container_resources
|
||||||
|
|
||||||
if [[ ! -d /opt/ampache ]]; then
|
if [[ ! -d /opt/ampache ]]; then
|
||||||
msg_error "No ${APP} Installation Found!"
|
msg_error "No ${APP} Installation Found!"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
if check_for_gh_release "Ampache" "ampache/ampache"; then
|
if check_for_gh_release "Ampache" "ampache/ampache"; then
|
||||||
|
import_local_ip
|
||||||
msg_info "Stopping Apache"
|
msg_info "Stopping Apache"
|
||||||
systemctl stop apache2
|
systemctl stop apache2
|
||||||
msg_ok "Stopped Apache"
|
msg_ok "Stopped Apache"
|
||||||
@ -61,7 +63,7 @@ function update_script() {
|
|||||||
systemctl start apache2
|
systemctl start apache2
|
||||||
msg_ok "Started Apache"
|
msg_ok "Started Apache"
|
||||||
msg_ok "Updated successfully!"
|
msg_ok "Updated successfully!"
|
||||||
msg_custom "⚠️" "${YW}" "Complete database update by visiting: http://${IP}/update.php"
|
msg_custom "⚠️" "${YW}" "Complete database update by visiting: http://${LOCAL_IP}/update.php"
|
||||||
fi
|
fi
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user