1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/keeweb_ynh.git synced 2024-09-03 19:26:33 +02:00

Remove dropbox autosetup

This commit is contained in:
scith 2016-06-10 11:42:41 +02:00
parent 590df5db5b
commit 8265657fd0
4 changed files with 5 additions and 24 deletions

View file

@ -5,12 +5,16 @@ Web client for reading and editing Keepass files locally. It can also sync with
**Current version: 1.1.4**
## Usage with OwnCloud ##
1. Open your file through webdav using https://linktoowncloud/remote.php/webdav and your username and password
## Usage for Dropbox sync ##
1. [create](https://www.dropbox.com/developers/apps/create) a Dropbox app
2. find your app key (in Dropbox App page, go to Settings/App key)
3. Enter the app key during install
**More information on the documentation page:**
https://keeweb.info/

View file

@ -41,14 +41,6 @@
"example": "/passwords",
"default": "/passwords"
},
{
"name": "dropbox",
"ask": {
"en": "To sync with Dropbox, create a Dropbox app and enter here your app key (Settings/App key)",
"fr": "Pour synchroniser avec Dropbox, créez une app Dropbox et entrez ici votre clé (Settings/App key)"
},
"example": "qp7ctun6qt5n9d6"
},
{
"name": "is_public",
"ask": {

View file

@ -8,22 +8,14 @@ app=keeweb
# Retrieve arguments
domain=$1
path=$2
dropbox=$3
is_public=$4
is_public=$3
# Save app settings
sudo yunohost app setting $app dropbox -v "$dropbox"
sudo yunohost app setting $app is_public -v "$is_public"
# Check domain/path availability
sudo yunohost app checkurl $domain$path -a $app \
|| (echo "Path not available: $domain$path" && exit 1)
# If a Dropbox app key is present, add it
if [ -n "$dropbox" ];
then
sudo sed -i.bak s/qp7ctun6qt5n9d6/$dropbox/g ../sources/index.html
fi
# Copy source files
final_path=/var/www/$app

View file

@ -8,17 +8,10 @@ app=keeweb
# Retrieve arguments
domain=$(sudo yunohost app setting $app domain)
path=$(sudo yunohost app setting $app path)
dropbox=$(sudo yunohost app setting $app dropbox)
is_public=$(sudo yunohost app setting $app is_public)
# Remove trailing "/" for next commands
path=${path%/}
# If a Dropbox app key is present, add it
if [ -n "$dropbox" ];
then
sudo sed -i.bak s/qp7ctun6qt5n9d6/$dropbox/g ../sources/index.html
fi
# Copy source files
final_path=/var/www/$app