mirror of
https://github.com/YunoHost-Apps/cryptpad_ynh.git
synced 2024-09-03 18:26:14 +02:00
fix
This commit is contained in:
parent
c25224a0ae
commit
b4838eeb6b
5 changed files with 7 additions and 10 deletions
|
@ -1,5 +1,3 @@
|
||||||
## Configuration
|
|
||||||
|
|
||||||
We have added the mandatory sandbox domain for you but you still need to configure your DNS and generate Let's Encrypt Certificates for it !!
|
We have added the mandatory sandbox domain for you but you still need to configure your DNS and generate Let's Encrypt Certificates for it !!
|
||||||
|
|
||||||
Once CryptPad is installed, create an account via the Register button on the home page. To make this account an instance administrator:
|
Once CryptPad is installed, create an account via the Register button on the home page. To make this account an instance administrator:
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
We have added a sandbox domain : __SANDBOXDOMAIN__ for you but you still need to configure your DNS and generate the Let's Encrypt Certificates for it.
|
We have added a sandbox domain : __SANDBOXDOMAIN__ for you but you still need to configure your DNS and generate the Let's Encrypt Certificates for it.
|
||||||
You will need also to restart CryptPad service after this is done.
|
You will need also to restart CryptPad service after this is done.
|
||||||
|
|
||||||
Then you can please open your $app domain: https://$domain$path
|
Then you can please open your __APP__ domain: https://__DOMAIN__
|
||||||
Once CryptPad is installed, create an account via the Sign Up button on the home page which will take you to the Register page.
|
Once CryptPad is installed, create an account via the Sign Up button on the home page which will take you to the Register page.
|
||||||
To make this account an instance administrator:
|
To make this account an instance administrator:
|
||||||
|
|
||||||
|
@ -11,6 +11,3 @@ To make this account an instance administrator:
|
||||||
adminKeys: [
|
adminKeys: [
|
||||||
"[cryptpad-user1@my.awesome.website/YZgXQxKR0Rcb6r6CmxHPdAGLVludrAF2lEnkbx1vVOo=]",
|
"[cryptpad-user1@my.awesome.website/YZgXQxKR0Rcb6r6CmxHPdAGLVludrAF2lEnkbx1vVOo=]",
|
||||||
],
|
],
|
||||||
|
|
||||||
|
|
||||||
If you are facing an issue or want to improve this app, please open a new issue in this project: https://github.com/YunoHost-Apps/cryptpad_ynh"
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
message="CryptPad was successfully upgraded :)
|
message="CryptPad was successfully upgraded :)
|
||||||
We have added a sandbox domain for you but you still need to configure your DNS and generate Let's Encrypt Certificates for it !!
|
We have added a sandbox domain for you but you still need to configure your DNS and generate Let's Encrypt Certificates for it !!
|
||||||
If not already done, then you can please open your $app domain: https://__DOMAIN____PATH____
|
If not already done, then you can please open your $app domain: https://__DOMAIN__
|
||||||
Create an account via the Register button on the home page. To make this account an instance administrator:
|
Create an account via the Register button on the home page. To make this account an instance administrator:
|
||||||
1. Copy the public key found in User Menu (avatar at the top right) > Settings > Account > Public Signing Key
|
1. Copy the public key found in User Menu (avatar at the top right) > Settings > Account > Public Signing Key
|
||||||
2. Paste this key in /var/www/cryptpad/config/config.js in the following array (uncomment and replace the placeholder):
|
2. Paste this key in /var/www/cryptpad/config/config.js in the following array (uncomment and replace the placeholder):
|
||||||
|
|
|
@ -32,6 +32,8 @@ if [[ $domain == *".local" ]]; then
|
||||||
sandboxdomain=sandbox-$domain
|
sandboxdomain=sandbox-$domain
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
ynh_app_setting_set --app=$app --key=sandboxdomain --value=$sandboxdomain
|
||||||
|
|
||||||
ynh_script_progression --message="Setting up sandobx domain : $sandboxdomain" --weight=1
|
ynh_script_progression --message="Setting up sandobx domain : $sandboxdomain" --weight=1
|
||||||
|
|
||||||
# We don't test that in CI
|
# We don't test that in CI
|
||||||
|
@ -43,7 +45,7 @@ fi
|
||||||
#=================================================
|
#=================================================
|
||||||
# INSTALL DEPENDENCIES
|
# INSTALL DEPENDENCIES
|
||||||
#=================================================
|
#=================================================
|
||||||
#REMOVEME? ynh_script_progression --message="Installing dependencies..." --weight=20
|
ynh_script_progression --message="Installing dependencies..." --weight=20
|
||||||
|
|
||||||
ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version
|
ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version
|
||||||
|
|
||||||
|
@ -107,7 +109,6 @@ ynh_systemd_action --service_name=$app --action="start" --log_path="systemd"
|
||||||
#=================================================
|
#=================================================
|
||||||
# SETUP SSOWAT
|
# SETUP SSOWAT
|
||||||
#=================================================
|
#=================================================
|
||||||
#ynh_script_progression --message="Configuring permissions..." --weight=1
|
|
||||||
|
|
||||||
# We authorize access to sandbox domain
|
# We authorize access to sandbox domain
|
||||||
# We don't test that in CI
|
# We don't test that in CI
|
||||||
|
|
|
@ -40,7 +40,7 @@ then
|
||||||
ynh_script_progression --message="Upgrading source files..." --weight=1
|
ynh_script_progression --message="Upgrading source files..." --weight=1
|
||||||
|
|
||||||
# Download, check integrity, uncompress and patch the source from app.src
|
# Download, check integrity, uncompress and patch the source from app.src
|
||||||
ynh_setup_source --dest_dir="$install_dir" --keep="config/config.js"
|
ynh_setup_source --dest_dir="$install_dir" #--keep="config/config.js"
|
||||||
|
|
||||||
chmod -R o-rwx "$install_dir"
|
chmod -R o-rwx "$install_dir"
|
||||||
chown -R $app:$app "$install_dir"
|
chown -R $app:$app "$install_dir"
|
||||||
|
@ -117,6 +117,7 @@ popd
|
||||||
#=================================================
|
#=================================================
|
||||||
# ADD UPGRADED CONFIG WITH SANDBOX
|
# ADD UPGRADED CONFIG WITH SANDBOX
|
||||||
#=================================================
|
#=================================================
|
||||||
|
ynh_script_progression --message="Updating a configuration file..." --weight=1
|
||||||
|
|
||||||
ynh_add_config --template="../conf/config.js" --destination="$install_dir/config/config.js"
|
ynh_add_config --template="../conf/config.js" --destination="$install_dir/config/config.js"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue