Skip to content

Commit 088ad73

Browse files
author
Istiak Ferdous
committed
Fix architecture detection
Previously aarch64 would be detected as valid system while it is not yet supported.
1 parent 270889b commit 088ad73

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

cyberpanel.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,8 +253,8 @@ else
253253
fi
254254

255255

256-
if ! uname -m | grep -q 64 ; then
257-
echo -e "x64 system is required...\n"
256+
if ! uname -m | grep -q x86_64 ; then
257+
echo -e "x86_64 system is required...\n"
258258
exit
259259
fi
260260

cyberpanel_upgrade.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ if [[ ! -f /etc/os-release ]] ; then
108108
exit
109109
fi
110110

111-
if ! uname -m | grep -q 64 ; then
112-
echo -e "x64 system is required...\n"
111+
if ! uname -m | grep -q x86_64 ; then
112+
echo -e "x86_64 system is required...\n"
113113
exit
114114
fi
115115

0 commit comments

Comments
 (0)