mirror of
https://github.com/YunoHost-Apps/acropolis_ynh.git
synced 2024-09-03 18:06:22 +02:00
2021.12.29~ynh1 - Merge pull request #40 from YunoHost-Apps/testing
This commit is contained in:
commit
0a4c1d8f83
7 changed files with 29 additions and 8 deletions
|
@ -18,7 +18,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in
|
||||||
Acropolis was forked from diaspora* in August 2021. The idea for the fork is to optimize toward community, that is making it as easy as possible to contribute. We're following a protocol that basically says if you are addressing a valid problem, your code gets merged. Everything else follows from that.
|
Acropolis was forked from diaspora* in August 2021. The idea for the fork is to optimize toward community, that is making it as easy as possible to contribute. We're following a protocol that basically says if you are addressing a valid problem, your code gets merged. Everything else follows from that.
|
||||||
|
|
||||||
|
|
||||||
**Shipped version:** 2021.12.23~ynh1
|
**Shipped version:** 2021.12.29~ynh1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@ Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour
|
||||||
Acropolis was forked from diaspora* in August 2021. The idea for the fork is to optimize toward community, that is making it as easy as possible to contribute. We're following a protocol that basically says if you are addressing a valid problem, your code gets merged. Everything else follows from that.
|
Acropolis was forked from diaspora* in August 2021. The idea for the fork is to optimize toward community, that is making it as easy as possible to contribute. We're following a protocol that basically says if you are addressing a valid problem, your code gets merged. Everything else follows from that.
|
||||||
|
|
||||||
|
|
||||||
**Version incluse :** 2021.12.23~ynh1
|
**Version incluse :** 2021.12.29~ynh1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -69,4 +69,4 @@ Yunohost::AppSrcFile.new().update(url, sum)
|
||||||
# Update manifest file
|
# Update manifest file
|
||||||
Yunohost::ManifestFile.new().update_with_version(version)
|
Yunohost::ManifestFile.new().update_with_version(version)
|
||||||
|
|
||||||
puts "Done!"
|
puts "Done!"
|
|
@ -3,6 +3,7 @@
|
||||||
domain="domain.tld"
|
domain="domain.tld"
|
||||||
path="/path"
|
path="/path"
|
||||||
admin="john"
|
admin="john"
|
||||||
|
email="admin@domain.tld"
|
||||||
language="fr"
|
language="fr"
|
||||||
is_public=1
|
is_public=1
|
||||||
password="1Strong-Password"
|
password="1Strong-Password"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
SOURCE_URL=https://github.com/magicstone-dev/acropolis/archive/a3dcee047d1687e6e4e265f50d51cf02d5125bce.tar.gz
|
SOURCE_URL=https://github.com/magicstone-dev/acropolis/archive/d427864c7a5b1bc766054322a8a080594ba004d4.tar.gz
|
||||||
SOURCE_SUM=6bb9c435024a7e313f93aedfeb26405271c87725e219934e3e541ffb46148f08
|
SOURCE_SUM=3f482fb978ac2d2dfcdd747ca2b5e3761a21f6c466418337eb03a729e0e4fa07
|
||||||
SOURCE_SUM_PRG=sha256sum
|
SOURCE_SUM_PRG=sha256sum
|
||||||
SOURCE_FORMAT=tar.gz
|
SOURCE_FORMAT=tar.gz
|
||||||
SOURCE_IN_SUBDIR=true
|
SOURCE_IN_SUBDIR=true
|
||||||
SOURCE_FILENAME=a3dcee047d1687e6e4e265f50d51cf02d5125bce.tar.gz
|
SOURCE_FILENAME=d427864c7a5b1bc766054322a8a080594ba004d4.tar.gz
|
||||||
SOURCE_EXTRACT=true
|
SOURCE_EXTRACT=true
|
|
@ -6,7 +6,7 @@
|
||||||
"en": "Dynamic fork of diaspora*'s federated social network",
|
"en": "Dynamic fork of diaspora*'s federated social network",
|
||||||
"fr": "Fourche dynamique du réseau social fédéré de diaspora*"
|
"fr": "Fourche dynamique du réseau social fédéré de diaspora*"
|
||||||
},
|
},
|
||||||
"version": "2021.12.23~ynh1",
|
"version": "2021.12.29~ynh1",
|
||||||
"url": "https://github.com/magicstone-dev/acropolis",
|
"url": "https://github.com/magicstone-dev/acropolis",
|
||||||
"upstream": {
|
"upstream": {
|
||||||
"license": "free",
|
"license": "free",
|
||||||
|
@ -30,6 +30,21 @@
|
||||||
"name": "domain",
|
"name": "domain",
|
||||||
"type": "domain"
|
"type": "domain"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "admin",
|
||||||
|
"type": "user"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "email",
|
||||||
|
"type": "email",
|
||||||
|
"ask": {
|
||||||
|
"en": "Enter email address for administative notifications."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "password",
|
||||||
|
"type": "password"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "is_public",
|
"name": "is_public",
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
|
|
|
@ -28,6 +28,9 @@ ynh_abort_if_errors
|
||||||
domain=$YNH_APP_ARG_DOMAIN
|
domain=$YNH_APP_ARG_DOMAIN
|
||||||
path_url="/"
|
path_url="/"
|
||||||
is_public=$YNH_APP_ARG_IS_PUBLIC
|
is_public=$YNH_APP_ARG_IS_PUBLIC
|
||||||
|
admin=$YNH_APP_ARG_ADMIN
|
||||||
|
email=$YNH_APP_ARG_EMAIL
|
||||||
|
password=$YNH_APP_ARG_PASSWORD
|
||||||
|
|
||||||
### If it's a multi-instance app, meaning it can be installed several times independently
|
### If it's a multi-instance app, meaning it can be installed several times independently
|
||||||
### The id of the app as stated in the manifest is available as $YNH_APP_ID
|
### The id of the app as stated in the manifest is available as $YNH_APP_ID
|
||||||
|
@ -247,13 +250,15 @@ pushd "$final_path"
|
||||||
sudo -u $app $ynh_ruby_load_path bin/bundle install --full-index
|
sudo -u $app $ynh_ruby_load_path bin/bundle install --full-index
|
||||||
popd
|
popd
|
||||||
|
|
||||||
ynh_script_progression --message="Preparing the database..."
|
ynh_script_progression --message="Preparing the database and create initial admin user..."
|
||||||
|
|
||||||
pushd "$final_path"
|
pushd "$final_path"
|
||||||
rake_exec="sudo -u $app $ynh_ruby_load_path RAILS_ENV=production bin/rake"
|
rake_exec="sudo -u $app $ynh_ruby_load_path RAILS_ENV=production bin/rake"
|
||||||
ynh_exec_warn_less $rake_exec db:migrate
|
ynh_exec_warn_less $rake_exec db:migrate
|
||||||
ynh_exec_warn_less $rake_exec assets:precompile
|
ynh_exec_warn_less $rake_exec assets:precompile
|
||||||
|
ynh_exec_warn_less $rake_exec "admin:create[$admin, $email, $password]"
|
||||||
popd
|
popd
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SETUP THE CRON FILE
|
# SETUP THE CRON FILE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue