Pārlūkot izejas kodu

removing logs directory and changing service name

Penta 5 gadi atpakaļ
vecāks
revīzija
6c56f22929
3 mainītis faili ar 2 papildinājumiem un 5 dzēšanām
  1. 1 4
      .travis.yml
  2. 0 0
      extra/myanimebot.service
  3. 1 1
      myanimebot.example.conf

+ 1 - 4
.travis.yml

@@ -21,12 +21,9 @@ install:
   - pip install -U pytest-cov
 script:
   # Creating the applicative database
-  - sudo mariadb -e "CREATE DATABASE $DB_NAME"
+  - sudo mariadb -e "CREATE DATABASE $DB_NAME; CREATE USER IF NOT EXISTS '$DB_USER'@'localhost' IDENTIFIED BY '$DB_PASSWORD'; GRANT ALL PRIVILEGES ON $DB_NAME.* TO '$DB_USER'@'localhost'; FLUSH PRIVILEGES;"
   # Import of the database architecture
   - sudo mariadb $DB_NAME < extra/myanimebot-init.sql
-  # Creation of the user for the application
-  - sudo mariadb -e "CREATE USER IF NOT EXISTS '$DB_USER'@'$DB_HOST' IDENTIFIED BY '$DB_PASSWORD'; GRANT ALL PRIVILEGES ON $DB_NAME.* TO '$DB_USER'@'$DB_HOST'; FLUSH PRIVILEGES;"
-  - mkdir "logs"
   # Create conf
   - envsubst < myanimebot.example.conf > myanimebot.conf
   # Run tests

+ 0 - 0
extra/malbot.service → extra/myanimebot.service


+ 1 - 1
myanimebot.example.conf

@@ -5,7 +5,7 @@
 logLevel = INFO
 
 # Path of the log file
-logPath = logs/myanimebot.log
+logPath = myanimebot.log
 
 # Database configuration
 dbHost = $DB_HOST