소스 검색

Source install script in hooks if ran before install-hook

Joachim M. Giæver 3 년 전
부모
커밋
2a315868de
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      scripts/hooks/configure
  2. 1 1
      scripts/hooks/connect-plug-configurations

+ 1 - 1
scripts/hooks/configure

@@ -6,7 +6,7 @@ logger "Configure snap!"
 
 if [ ! -f "${SNAP_DATA}/settings.conf" ]; then
     logger "Settings-file is missing"
-    exit 1
+    source "$SNAP/snap/hooks/install"
 else
     logger "Settings.conf exists, continue configure"
 fi

+ 1 - 1
scripts/hooks/connect-plug-configurations

@@ -4,7 +4,7 @@ logger "Connect plug!"
 
 if [ ! -f "${SNAP_DATA}/settings.conf" ]; then
     logger "Settings-file is missing"
-    exit 1
+    source "$SNAP/snap/hooks/install"
 else
     logger "Settings.conf exists, continue plug:configurations"
 fi