mirror of
https://github.com/stefanpejcic/openpanel
synced 2025-06-26 18:28:26 +00:00
Update INSTALL.sh
This commit is contained in:
parent
4e6646e92e
commit
aa52037826
14
INSTALL.sh
14
INSTALL.sh
@ -275,12 +275,13 @@ main() {
|
|||||||
check_requirements() {
|
check_requirements() {
|
||||||
if [ -z "$SKIP_REQUIREMENTS" ]; then
|
if [ -z "$SKIP_REQUIREMENTS" ]; then
|
||||||
|
|
||||||
# https://github.com/stefanpejcic/openpanel/issues/63
|
|
||||||
|
|
||||||
architecture=$(lscpu | grep Architecture | awk '{print $2}')
|
architecture=$(lscpu | grep Architecture | awk '{print $2}')
|
||||||
|
|
||||||
if [ "$architecture" == "aarch64" ]; then
|
if [ "$architecture" == "aarch64" ]; then
|
||||||
echo -e "${RED}Error: ARM CPU is not supported!${RESET}" >&2
|
# https://github.com/stefanpejcic/openpanel/issues/63
|
||||||
|
echo -e "${RED}Error: ARM CPU is not supported! Feature request: https://github.com/stefanpejcic/openpanel/issues/63 ${RESET}" >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -1002,15 +1003,6 @@ set_system_cronjob(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
cleanup() {
|
|
||||||
echo "Cleaning up.."
|
|
||||||
# https://www.faqforge.com/linux/fixed-ubuntu-apt-get-upgrade-auto-restart-services/
|
|
||||||
sed -i 's/$nrconf{restart} = '"'"'a'"'"';/#$nrconf{restart} = '"'"'i'"'"';/g' /etc/needrestart/needrestart.conf
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
set_custom_hostname(){
|
set_custom_hostname(){
|
||||||
if [ "$SET_HOSTNAME_NOW" = true ]; then
|
if [ "$SET_HOSTNAME_NOW" = true ]; then
|
||||||
# Check if the provided hostname is a valid FQDN
|
# Check if the provided hostname is a valid FQDN
|
||||||
|
Loading…
Reference in New Issue
Block a user