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:
parent
590df5db5b
commit
8265657fd0
4 changed files with 5 additions and 24 deletions
|
@ -5,12 +5,16 @@ Web client for reading and editing Keepass files locally. It can also sync with
|
||||||
|
|
||||||
**Current version: 1.1.4**
|
**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 ##
|
## Usage for Dropbox sync ##
|
||||||
1. [create](https://www.dropbox.com/developers/apps/create) a Dropbox app
|
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)
|
2. find your app key (in Dropbox App page, go to Settings/App key)
|
||||||
3. Enter the app key during install
|
3. Enter the app key during install
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
**More information on the documentation page:**
|
**More information on the documentation page:**
|
||||||
https://keeweb.info/
|
https://keeweb.info/
|
||||||
|
|
||||||
|
|
|
@ -41,14 +41,6 @@
|
||||||
"example": "/passwords",
|
"example": "/passwords",
|
||||||
"default": "/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",
|
"name": "is_public",
|
||||||
"ask": {
|
"ask": {
|
||||||
|
|
|
@ -8,22 +8,14 @@ app=keeweb
|
||||||
# Retrieve arguments
|
# Retrieve arguments
|
||||||
domain=$1
|
domain=$1
|
||||||
path=$2
|
path=$2
|
||||||
dropbox=$3
|
is_public=$3
|
||||||
is_public=$4
|
|
||||||
|
|
||||||
# Save app settings
|
# Save app settings
|
||||||
sudo yunohost app setting $app dropbox -v "$dropbox"
|
|
||||||
sudo yunohost app setting $app is_public -v "$is_public"
|
sudo yunohost app setting $app is_public -v "$is_public"
|
||||||
|
|
||||||
# Check domain/path availability
|
# Check domain/path availability
|
||||||
sudo yunohost app checkurl $domain$path -a $app \
|
sudo yunohost app checkurl $domain$path -a $app \
|
||||||
|| (echo "Path not available: $domain$path" && exit 1)
|
|| (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
|
# Copy source files
|
||||||
final_path=/var/www/$app
|
final_path=/var/www/$app
|
||||||
|
|
|
@ -8,17 +8,10 @@ app=keeweb
|
||||||
# Retrieve arguments
|
# Retrieve arguments
|
||||||
domain=$(sudo yunohost app setting $app domain)
|
domain=$(sudo yunohost app setting $app domain)
|
||||||
path=$(sudo yunohost app setting $app path)
|
path=$(sudo yunohost app setting $app path)
|
||||||
dropbox=$(sudo yunohost app setting $app dropbox)
|
|
||||||
is_public=$(sudo yunohost app setting $app is_public)
|
is_public=$(sudo yunohost app setting $app is_public)
|
||||||
|
|
||||||
# Remove trailing "/" for next commands
|
# Remove trailing "/" for next commands
|
||||||
path=${path%/}
|
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
|
# Copy source files
|
||||||
final_path=/var/www/$app
|
final_path=/var/www/$app
|
||||||
|
|
Loading…
Reference in a new issue