소스 검색

Update INSTALL.sh

Stefan Pejcic 1 년 전
부모
커밋
66c71b77b1
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      INSTALL.sh

+ 4 - 4
INSTALL.sh

@@ -444,7 +444,7 @@ install_all_locales() {
 
 
 check_lock_file_age() {
-    if [ -z "$REPAIR" ]; then
+    if [ "$REPAIR" = true ]; then
         rm "$LOCK_FILE"
         # and if lock file exists
         if [ -e "$LOCK_FILE" ]; then
@@ -764,7 +764,7 @@ configure_modsecurity() {
 
 setup_openpanel() {
 
-    if [ -z "$REPAIR" ]; then
+    if [ "$REPAIR" = true ]; then
         rm -rf $OPENPANEL_DIR
     fi
 
@@ -817,7 +817,7 @@ setup_openadmin() {
     #
     echo "Setting up Admin panel.."
 
-    if [ -z "$REPAIR" ]; then
+    if [ "$REPAIR" = true ]; then
         rm -rf $OPENPADMIN_DIR
     fi
 
@@ -880,7 +880,7 @@ setup_opencli() {
     #
     echo "Setting OpenPanel CLI scripts.."
 
-    if [ -z "$REPAIR" ]; then
+    if [ "$REPAIR" = true ]; then
         rm -rf $OPENCLI_DIR
     fi