We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 565206c commit 193cc8cCopy full SHA for 193cc8c
1 file changed
lib/include/settings.sh
@@ -89,6 +89,26 @@ function create_settings() {
89
then
90
return
91
fi
92
+ else
93
+ read -p "Do you want to import a previously exported archive from stdin? [y/N]" -n 1 -r
94
+ echo ""
95
+ if [[ $REPLY =~ ^[Yy]$ ]]
96
+ then
97
+ mkdir -p lib/plugins
98
+ if [ ! -d lib/plugins/server-plugin-export ]
99
100
+ git clone https://github.com/DDNetPP/server-plugin-export lib/plugins/server-plugin-export
101
102
+ pushd lib/plugins/server-plugin-export
103
+ git_save_pull
104
+ popd
105
+ fi
106
+ ./lib/plugins/server-plugin-export/bin/archive_cli import --stdin
107
108
+ if [ -f $current_settings_file ];
109
110
+ return
111
112
113
114
read -p "Do you want to create one? [y/N]" -n 1 -r
0 commit comments