소스 검색

Fake ynh_restore_file for prepare to this futur helper

Maniack Crudelis 7 년 전
부모
커밋
eafe4235f4
1개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  1. 7 0
      scripts/_common.sh

+ 7 - 0
scripts/_common.sh

@@ -638,3 +638,10 @@ ynh_remove_systemd_config () {
 		ynh_secure_remove "$finalsystemdconf"
 	fi
 }
+
+#####################################
+
+# This is not an official helper, just an abstract helper to prepare to the new one.
+ynh_restore_file () {
+	sudo cp -a "${backup_dir}$1" "$1"
+}