Skip to content

Commit

Permalink
fixed typo in storage config
Browse files Browse the repository at this point in the history
  • Loading branch information
Mehreen committed Mar 26, 2021
1 parent 4fc4bfb commit 382286f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion config/initializers/storage.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
config.storage = ActiveSupport::OrderedOptions.new
config.storage.stores = storage_config[:stores]
config.storage.primary_store = storage_config[:primary_store]
config.storage.secondary_store = storage_config[:secundary_store]
config.storage.secondary_store = storage_config[:secondary_store]
end
6 changes: 3 additions & 3 deletions config/storage.yml.example
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
development:
:primary_store: 'local'
:secundary_store: ''
:secondary_store: ''
:stores:
:tmp:
:data_folder: 'tmp/uploads/development'
Expand Down Expand Up @@ -28,7 +28,7 @@ development:

test:
:primary_store: 'local'
:secundary_store: ''
:secondary_store: ''
:stores:
:tmp:
:data_folder: 'tmp/test/uploads/tmp/'
Expand All @@ -39,7 +39,7 @@ test:

production:
:primary_store: 'local'
:secundary_store: ''
:secondary_store: ''
:stores:
:tmp:
:data_folder: 'tmp/test/uploads/tmp/'
Expand Down
2 changes: 1 addition & 1 deletion lib/storage/storage.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class Storage
attr_reader :attachment, :primary_store, :secundary_store
attr_reader :attachment, :primary_store, :secondary_store
class << self
def new_store(attach)
storage_klass(attach).new(attach)
Expand Down
8 changes: 4 additions & 4 deletions scripts/install_production.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,13 @@ PART_11='configure NGINX'
############################################
############################################

## supported Distribution Version
## supported Distribution Version
. /etc/os-release
V18='bionic'
V20='focal'
V10='buster'
# if [ "$VERSION_CODENAME" = "$V18" ]; then
# RUBY_VERSION=2.5.8
# RUBY_VERSION=2.5.8
# fi

GRE='\033[0;32m'
Expand Down Expand Up @@ -139,7 +139,7 @@ trap "rm_tmp; rm_tmp_repo; red 'An error has occured'" ERR

if [ "$VERSION_CODENAME" = "$V10" ] || [ "$VERSION_CODENAME" = "$V18" ] || [ "$VERSION_CODENAME" = "$V20" ]; then
sharpi "Running installation for $PRETTY_NAME "
else
else
error "The installation for your distribution ($PRETTY_NAME) has not been tested"
fi

Expand Down Expand Up @@ -381,7 +381,7 @@ EOL
echo | sudo tee $pwd/config/storage.yml <<EOL || true
production:
:primary_store: 'local'
:secundary_store: ''
:secondary_store: ''
:stores:
:tmp:
:data_folder: 'tmp/uploads/production/'
Expand Down

0 comments on commit 382286f

Please sign in to comment.