소스 검색

chmod/chown install_dir in restore

Chris Vogel 1 년 전
부모
커밋
0e28012847
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      scripts/restore

+ 2 - 0
scripts/restore

@@ -43,6 +43,8 @@ systemctl status couchdb
 # RESTORE THE APP MAIN DIR
 ynh_script_progression --message="Restoring the app main directory..." --weight=10
 ynh_restore_file --origin_path="$install_dir"
+chmod -R 644 $install_dir
+chown -R root:$app $install_dir
 
 # RESTORE THE DATA DIRECTORY
 ynh_script_progression --message="Restoring the data directory..." --weight=1