summarylogtreecommitdiffstats
path: root/sftpman.install
diff options
context:
space:
mode:
authorSlavi Pantaleev2018-02-02 15:36:32 +0200
committerSlavi Pantaleev2018-02-02 15:36:32 +0200
commita9d47bb05290ea89320c172284a21838c0253aff (patch)
tree1f3fab4818d69a2d5ece645eb3a7570d617ef12c /sftpman.install
parent887207c4b45935a84bdf7ff4e8fc3bbed893bc04 (diff)
downloadaur-a9d47bb05290ea89320c172284a21838c0253aff.tar.gz
Add notice about .js to .json migration
Diffstat (limited to 'sftpman.install')
-rw-r--r--sftpman.install8
1 files changed, 8 insertions, 0 deletions
diff --git a/sftpman.install b/sftpman.install
index 6b28872e6217..bb8ee1f44ce4 100644
--- a/sftpman.install
+++ b/sftpman.install
@@ -18,6 +18,14 @@ post_install() {
post_upgrade() {
post_install $1
+
+ if [[ "$2" =~ ^1:0\. ]]; then
+ echo "======================"
+ echo "NOTE: since sftpman=1.0, config files are stored as .json files, not as .js!";
+ echo -e "\nYou must relocate your config files:";
+ echo -e "\t"'for f in $(ls ~/.config/sftpman/mounts/*.js); do n=$(echo $f | sed 's/.js$/.json/'); mv $f $n; done;';
+ echo "======================"
+ fi
}
pre_remove() {